{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:24.576524Z",
     "start_time": "2018-08-28T21:16:24.321317Z"
    }
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "from tqdm import tqdm\n",
    "from multiprocessing import Pool, cpu_count\n",
    "NTHREAD = cpu_count()\n",
    "\n",
    "import warnings\n",
    "warnings.filterwarnings(\"ignore\")\n",
    "\n",
    "from IPython.display import display\n",
    "pd.set_option('display.max_columns', 99)\n",
    "pd.set_option('display.max_rows', 50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:31.226287Z",
     "start_time": "2018-08-28T21:16:24.590399Z"
    }
   },
   "outputs": [],
   "source": [
    "train  = pd.read_csv('../input/application_train.csv.zip')\n",
    "train['is_train'] = 1\n",
    "\n",
    "test  = pd.read_csv('../input/application_test.csv.zip')\n",
    "test['is_train'] = 0\n",
    "\n",
    "trte = pd.concat([train, test], ignore_index=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:42.609890Z",
     "start_time": "2018-08-28T21:16:31.230139Z"
    }
   },
   "outputs": [],
   "source": [
    "prev = pd.read_csv('../input/previous_application.csv.zip')\n",
    "prev.sort_values('DAYS_DECISION', inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:42.721943Z",
     "start_time": "2018-08-28T21:16:42.612371Z"
    }
   },
   "outputs": [],
   "source": [
    "user_id = pd.read_csv('../data/user_id_v8.csv.gz')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.206971Z",
     "start_time": "2018-08-28T21:16:42.723613Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>18.0</td>\n",
       "      <td>100279</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>254700.0</td>\n",
       "      <td>16407.0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.072508</td>\n",
       "      <td>-23946</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6935.0</td>\n",
       "      <td>-3948</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.458685</td>\n",
       "      <td>0.528093</td>\n",
       "      <td>0.3041</td>\n",
       "      <td>0.1854</td>\n",
       "      <td>0.9791</td>\n",
       "      <td>0.7144</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7182</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.32</td>\n",
       "      <td>0.2759</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0417</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.2454</td>\n",
       "      <td>0.2861</td>\n",
       "      <td>0.0311</td>\n",
       "      <td>0.0092</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.2230</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-975.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>18.0</td>\n",
       "      <td>100124</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>448272.0</td>\n",
       "      <td>28647.0</td>\n",
       "      <td>396000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.072508</td>\n",
       "      <td>-24051</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7040.0</td>\n",
       "      <td>-4053</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.710318</td>\n",
       "      <td>0.554947</td>\n",
       "      <td>0.2959</td>\n",
       "      <td>0.1785</td>\n",
       "      <td>0.9786</td>\n",
       "      <td>0.7076</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7115</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.32</td>\n",
       "      <td>0.2759</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.2454</td>\n",
       "      <td>0.2741</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0062</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.2131</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1080.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>8.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>38.0</td>\n",
       "      <td>100955</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>101880.0</td>\n",
       "      <td>10053.0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Lower secondary</td>\n",
       "      <td>Single / not married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22321</td>\n",
       "      <td>365243</td>\n",
       "      <td>-13611.0</td>\n",
       "      <td>-2523</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.664900</td>\n",
       "      <td>0.504681</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-1012.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>38.0</td>\n",
       "      <td>190916</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>24565.5</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Lower secondary</td>\n",
       "      <td>Single / not married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22609</td>\n",
       "      <td>365243</td>\n",
       "      <td>-73.0</td>\n",
       "      <td>-2811</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.279026</td>\n",
       "      <td>0.504692</td>\n",
       "      <td>0.466864</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1300.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>40.0</td>\n",
       "      <td>178701</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-16416</td>\n",
       "      <td>-1223</td>\n",
       "      <td>-2542.0</td>\n",
       "      <td>-4382</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Business Entity Type 3</td>\n",
       "      <td>0.479804</td>\n",
       "      <td>0.514119</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1642.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>40.0</td>\n",
       "      <td>101020</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>332946.0</td>\n",
       "      <td>16146.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-16649</td>\n",
       "      <td>-1456</td>\n",
       "      <td>-2775.0</td>\n",
       "      <td>-192</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Business Entity Type 3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.575513</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1875.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>53.0</td>\n",
       "      <td>247772</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>143100.0</td>\n",
       "      <td>729792.0</td>\n",
       "      <td>37260.0</td>\n",
       "      <td>630000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-21491</td>\n",
       "      <td>365243</td>\n",
       "      <td>-332.0</td>\n",
       "      <td>-86</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.303433</td>\n",
       "      <td>0.634706</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1235.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>53.0</td>\n",
       "      <td>101243</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>314055.0</td>\n",
       "      <td>13329.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-21590</td>\n",
       "      <td>365243</td>\n",
       "      <td>-401.0</td>\n",
       "      <td>-185</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.172657</td>\n",
       "      <td>0.659406</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-1334.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>56.0</td>\n",
       "      <td>101475</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>95940.0</td>\n",
       "      <td>9472.5</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21991</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7720.0</td>\n",
       "      <td>-4780</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.569745</td>\n",
       "      <td>0.602386</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1833.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>56.0</td>\n",
       "      <td>130172</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>145557.0</td>\n",
       "      <td>7132.5</td>\n",
       "      <td>121500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Widow</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-22154</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7913.0</td>\n",
       "      <td>-4943</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.609567</td>\n",
       "      <td>0.350696</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1996.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>69.0</td>\n",
       "      <td>101790</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>582228.0</td>\n",
       "      <td>17154.0</td>\n",
       "      <td>486000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.005313</td>\n",
       "      <td>-17479</td>\n",
       "      <td>365243</td>\n",
       "      <td>-10234.0</td>\n",
       "      <td>-1015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.656749</td>\n",
       "      <td>0.554947</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-419.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>69.0</td>\n",
       "      <td>340385</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>292500.0</td>\n",
       "      <td>231097.5</td>\n",
       "      <td>18387.0</td>\n",
       "      <td>175500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006207</td>\n",
       "      <td>-22056</td>\n",
       "      <td>365243</td>\n",
       "      <td>-4512.0</td>\n",
       "      <td>-5312</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.554697</td>\n",
       "      <td>0.239226</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1252.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>125.0</td>\n",
       "      <td>103690</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>68760.0</td>\n",
       "      <td>2596.5</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.009657</td>\n",
       "      <td>-22517</td>\n",
       "      <td>365243</td>\n",
       "      <td>-3714.0</td>\n",
       "      <td>-4665</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.620249</td>\n",
       "      <td>0.829750</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-703.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>125.0</td>\n",
       "      <td>241943</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>172021.5</td>\n",
       "      <td>12991.5</td>\n",
       "      <td>148500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-23237</td>\n",
       "      <td>365243</td>\n",
       "      <td>-206.0</td>\n",
       "      <td>-4609</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.759941</td>\n",
       "      <td>0.711311</td>\n",
       "      <td>0.761026</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1990.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>125.0</td>\n",
       "      <td>442631</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>94500.0</td>\n",
       "      <td>312768.0</td>\n",
       "      <td>13905.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.019101</td>\n",
       "      <td>-23571</td>\n",
       "      <td>365243</td>\n",
       "      <td>-15940.0</td>\n",
       "      <td>-4130</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.714069</td>\n",
       "      <td>0.429424</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1513.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>168.0</td>\n",
       "      <td>101044</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>1097676.0</td>\n",
       "      <td>32224.5</td>\n",
       "      <td>958500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.025164</td>\n",
       "      <td>-15085</td>\n",
       "      <td>-8508</td>\n",
       "      <td>-739.0</td>\n",
       "      <td>-2020</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Laborers</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>8</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Industry: type 5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.265256</td>\n",
       "      <td>0.735221</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>168.0</td>\n",
       "      <td>103341</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>339241.5</td>\n",
       "      <td>12312.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.025164</td>\n",
       "      <td>-15172</td>\n",
       "      <td>-8595</td>\n",
       "      <td>-826.0</td>\n",
       "      <td>-2107</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Laborers</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>Industry: type 5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.263144</td>\n",
       "      <td>0.713631</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-87.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>186.0</td>\n",
       "      <td>175892</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>597024.0</td>\n",
       "      <td>33466.5</td>\n",
       "      <td>540000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-21545</td>\n",
       "      <td>365243</td>\n",
       "      <td>-10349.0</td>\n",
       "      <td>-4705</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.756023</td>\n",
       "      <td>0.451965</td>\n",
       "      <td>0.622922</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-683.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>186.0</td>\n",
       "      <td>105376</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>162000.0</td>\n",
       "      <td>607500.0</td>\n",
       "      <td>26887.5</td>\n",
       "      <td>607500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.014520</td>\n",
       "      <td>-22299</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2233.0</td>\n",
       "      <td>-2303</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.547789</td>\n",
       "      <td>0.372422</td>\n",
       "      <td>0.709189</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1233.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>201.0</td>\n",
       "      <td>346825</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>805072.5</td>\n",
       "      <td>29047.5</td>\n",
       "      <td>679500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-20990</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6020.0</td>\n",
       "      <td>-4450</td>\n",
       "      <td>25.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.283881</td>\n",
       "      <td>0.606143</td>\n",
       "      <td>0.477649</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1727.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>201.0</td>\n",
       "      <td>420192</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>166500.0</td>\n",
       "      <td>339228.0</td>\n",
       "      <td>17451.0</td>\n",
       "      <td>243000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.008019</td>\n",
       "      <td>-21889</td>\n",
       "      <td>365243</td>\n",
       "      <td>-3102.0</td>\n",
       "      <td>-4216</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.501434</td>\n",
       "      <td>0.411849</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>201.0</td>\n",
       "      <td>105965</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>314055.0</td>\n",
       "      <td>13329.0</td>\n",
       "      <td>238500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-23571</td>\n",
       "      <td>365243</td>\n",
       "      <td>-4623.0</td>\n",
       "      <td>-4628</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.676461</td>\n",
       "      <td>0.689479</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2559.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>240.0</td>\n",
       "      <td>107153</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>198000.0</td>\n",
       "      <td>9630.0</td>\n",
       "      <td>198000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-16388</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2583.0</td>\n",
       "      <td>-4330</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.467139</td>\n",
       "      <td>0.447179</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2459.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>240.0</td>\n",
       "      <td>419583</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>114750.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>26446.5</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018850</td>\n",
       "      <td>-18615</td>\n",
       "      <td>365243</td>\n",
       "      <td>-6584.0</td>\n",
       "      <td>-2164</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.418705</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-435.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>246.0</td>\n",
       "      <td>206946</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>3</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>15750.0</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Incomplete higher</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010966</td>\n",
       "      <td>-13738</td>\n",
       "      <td>-5827</td>\n",
       "      <td>-5919.0</td>\n",
       "      <td>-4491</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Cooking staff</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Kindergarten</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.129925</td>\n",
       "      <td>0.328063</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-44.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17469</th>\n",
       "      <td>19477.0</td>\n",
       "      <td>440336</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>252000.0</td>\n",
       "      <td>838453.5</td>\n",
       "      <td>42939.0</td>\n",
       "      <td>688500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.010032</td>\n",
       "      <td>-18793</td>\n",
       "      <td>-11358</td>\n",
       "      <td>-3482.0</td>\n",
       "      <td>-2326</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.686566</td>\n",
       "      <td>0.586740</td>\n",
       "      <td>0.0825</td>\n",
       "      <td>0.0802</td>\n",
       "      <td>0.9752</td>\n",
       "      <td>0.6600</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6645</td>\n",
       "      <td>0.0277</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0745</td>\n",
       "      <td>0.0684</td>\n",
       "      <td>0.0652</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0648</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>-137.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17470</th>\n",
       "      <td>19478.0</td>\n",
       "      <td>456062</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>1056447.0</td>\n",
       "      <td>31018.5</td>\n",
       "      <td>922500.0</td>\n",
       "      <td>Children</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.004960</td>\n",
       "      <td>-22122</td>\n",
       "      <td>365243</td>\n",
       "      <td>-7997.0</td>\n",
       "      <td>-4703</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.793389</td>\n",
       "      <td>0.747837</td>\n",
       "      <td>0.746300</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-747.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17471</th>\n",
       "      <td>19478.0</td>\n",
       "      <td>236302</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>474444.0</td>\n",
       "      <td>18013.5</td>\n",
       "      <td>310500.0</td>\n",
       "      <td>Children</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.004960</td>\n",
       "      <td>-22332</td>\n",
       "      <td>365243</td>\n",
       "      <td>-8207.0</td>\n",
       "      <td>-4913</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.627384</td>\n",
       "      <td>0.658738</td>\n",
       "      <td>0.754406</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17472</th>\n",
       "      <td>19479.0</td>\n",
       "      <td>161667</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>1006920.0</td>\n",
       "      <td>39933.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006629</td>\n",
       "      <td>-18776</td>\n",
       "      <td>365243</td>\n",
       "      <td>-1886.0</td>\n",
       "      <td>-2313</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>5</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.685153</td>\n",
       "      <td>0.431192</td>\n",
       "      <td>0.0454</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.9901</td>\n",
       "      <td>0.9864</td>\n",
       "      <td>...</td>\n",
       "      <td>0.9866</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.2917</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0099</td>\n",
       "      <td>0.0355</td>\n",
       "      <td>0.0457</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0624</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0521</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1536.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17473</th>\n",
       "      <td>19479.0</td>\n",
       "      <td>456070</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>840996.0</td>\n",
       "      <td>24718.5</td>\n",
       "      <td>702000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.006629</td>\n",
       "      <td>-18800</td>\n",
       "      <td>-4699</td>\n",
       "      <td>-1910.0</td>\n",
       "      <td>-2337</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.350089</td>\n",
       "      <td>0.265049</td>\n",
       "      <td>0.0454</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.9901</td>\n",
       "      <td>0.9864</td>\n",
       "      <td>...</td>\n",
       "      <td>0.9866</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.2917</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.0099</td>\n",
       "      <td>0.0355</td>\n",
       "      <td>0.0457</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0624</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0521</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1560.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17474</th>\n",
       "      <td>19480.0</td>\n",
       "      <td>456077</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>143910.0</td>\n",
       "      <td>14364.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22355</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2200.0</td>\n",
       "      <td>-3765</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.702671</td>\n",
       "      <td>0.111986</td>\n",
       "      <td>0.641368</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-734.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17475</th>\n",
       "      <td>19480.0</td>\n",
       "      <td>248526</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>67500.0</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>11902.5</td>\n",
       "      <td>157500.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.030755</td>\n",
       "      <td>-22585</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2430.0</td>\n",
       "      <td>-3995</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.667471</td>\n",
       "      <td>0.004513</td>\n",
       "      <td>0.574447</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-964.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17476</th>\n",
       "      <td>19481.0</td>\n",
       "      <td>296995</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>63000.0</td>\n",
       "      <td>152820.0</td>\n",
       "      <td>14418.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-16557</td>\n",
       "      <td>-1277</td>\n",
       "      <td>-810.0</td>\n",
       "      <td>-99</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.853731</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-426.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17477</th>\n",
       "      <td>19481.0</td>\n",
       "      <td>456100</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>63000.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>6750.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-16557</td>\n",
       "      <td>-1277</td>\n",
       "      <td>-810.0</td>\n",
       "      <td>-99</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.472924</td>\n",
       "      <td>0.853731</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-426.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17478</th>\n",
       "      <td>19482.0</td>\n",
       "      <td>227746</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>314100.0</td>\n",
       "      <td>16573.5</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-20042</td>\n",
       "      <td>-2455</td>\n",
       "      <td>-8616.0</td>\n",
       "      <td>-3443</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Drivers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.695752</td>\n",
       "      <td>0.758393</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.0555</td>\n",
       "      <td>0.9841</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0342</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0461</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0589</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1740.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17479</th>\n",
       "      <td>19482.0</td>\n",
       "      <td>456109</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>M</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.003069</td>\n",
       "      <td>-20224</td>\n",
       "      <td>-2637</td>\n",
       "      <td>-8798.0</td>\n",
       "      <td>-3625</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Drivers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Business Entity Type 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.674328</td>\n",
       "      <td>0.719491</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.0555</td>\n",
       "      <td>0.9836</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0342</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0461</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0589</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1922.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17480</th>\n",
       "      <td>19483.0</td>\n",
       "      <td>155343</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>1</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>14472.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Separated</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018209</td>\n",
       "      <td>-20575</td>\n",
       "      <td>365243</td>\n",
       "      <td>-11983.0</td>\n",
       "      <td>-4114</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.335201</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>0.0835</td>\n",
       "      <td>0.0295</td>\n",
       "      <td>0.9831</td>\n",
       "      <td>0.7688</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7719</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0326</td>\n",
       "      <td>0.0676</td>\n",
       "      <td>0.0291</td>\n",
       "      <td>0.0078</td>\n",
       "      <td>0.0167</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0260</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1553.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17481</th>\n",
       "      <td>19483.0</td>\n",
       "      <td>456150</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>16645.5</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Separated</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.018209</td>\n",
       "      <td>-20768</td>\n",
       "      <td>365243</td>\n",
       "      <td>-12176.0</td>\n",
       "      <td>-4307</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.319830</td>\n",
       "      <td>0.617826</td>\n",
       "      <td>0.0835</td>\n",
       "      <td>0.0295</td>\n",
       "      <td>0.9826</td>\n",
       "      <td>0.7620</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7652</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0326</td>\n",
       "      <td>0.0676</td>\n",
       "      <td>0.0291</td>\n",
       "      <td>0.0078</td>\n",
       "      <td>0.0167</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0260</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1746.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17482</th>\n",
       "      <td>19484.0</td>\n",
       "      <td>228120</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>271066.5</td>\n",
       "      <td>20394.0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>Family</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-15358</td>\n",
       "      <td>-4314</td>\n",
       "      <td>-1724.0</td>\n",
       "      <td>-2967</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.757658</td>\n",
       "      <td>0.680811</td>\n",
       "      <td>0.636376</td>\n",
       "      <td>0.0381</td>\n",
       "      <td>0.0385</td>\n",
       "      <td>0.9697</td>\n",
       "      <td>0.5852</td>\n",
       "      <td>...</td>\n",
       "      <td>0.5907</td>\n",
       "      <td>0.0255</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1034</td>\n",
       "      <td>0.1250</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2542</td>\n",
       "      <td>0.0274</td>\n",
       "      <td>0.0204</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0474</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0397</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2416.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17483</th>\n",
       "      <td>19484.0</td>\n",
       "      <td>456151</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>369720.0</td>\n",
       "      <td>22747.5</td>\n",
       "      <td>292500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-15450</td>\n",
       "      <td>-4406</td>\n",
       "      <td>-1816.0</td>\n",
       "      <td>-3059</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Sales staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.682714</td>\n",
       "      <td>0.499351</td>\n",
       "      <td>0.591977</td>\n",
       "      <td>0.0381</td>\n",
       "      <td>0.0385</td>\n",
       "      <td>0.9697</td>\n",
       "      <td>0.5852</td>\n",
       "      <td>...</td>\n",
       "      <td>0.5907</td>\n",
       "      <td>0.0255</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.1034</td>\n",
       "      <td>0.1250</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2542</td>\n",
       "      <td>0.0274</td>\n",
       "      <td>0.0204</td>\n",
       "      <td>0.0194</td>\n",
       "      <td>0.0474</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0397</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2508.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>8.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17484</th>\n",
       "      <td>19485.0</td>\n",
       "      <td>141661</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>688090.5</td>\n",
       "      <td>22491.0</td>\n",
       "      <td>594000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21633</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2445.0</td>\n",
       "      <td>-4909</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.839565</td>\n",
       "      <td>0.354225</td>\n",
       "      <td>0.358951</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2440.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17485</th>\n",
       "      <td>19485.0</td>\n",
       "      <td>456163</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>170640.0</td>\n",
       "      <td>11034.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>-21755</td>\n",
       "      <td>365243</td>\n",
       "      <td>-2567.0</td>\n",
       "      <td>-5031</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.890056</td>\n",
       "      <td>0.355126</td>\n",
       "      <td>0.363945</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-2562.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17486</th>\n",
       "      <td>19486.0</td>\n",
       "      <td>294710</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>862560.0</td>\n",
       "      <td>25218.0</td>\n",
       "      <td>720000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>-22712</td>\n",
       "      <td>365243</td>\n",
       "      <td>-11805.0</td>\n",
       "      <td>-3705</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.506212</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.1938</td>\n",
       "      <td>0.1218</td>\n",
       "      <td>0.9916</td>\n",
       "      <td>0.8844</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8859</td>\n",
       "      <td>0.0501</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.5000</td>\n",
       "      <td>0.5417</td>\n",
       "      <td>0.1319</td>\n",
       "      <td>0.1608</td>\n",
       "      <td>0.2060</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.0231</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.1849</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1424.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17487</th>\n",
       "      <td>19486.0</td>\n",
       "      <td>456169</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>85500.0</td>\n",
       "      <td>109008.0</td>\n",
       "      <td>7411.5</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Pensioner</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>-22995</td>\n",
       "      <td>365243</td>\n",
       "      <td>-12088.0</td>\n",
       "      <td>-3988</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.465881</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.1938</td>\n",
       "      <td>0.1218</td>\n",
       "      <td>0.9911</td>\n",
       "      <td>0.8776</td>\n",
       "      <td>...</td>\n",
       "      <td>0.8792</td>\n",
       "      <td>0.0501</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.1379</td>\n",
       "      <td>0.5000</td>\n",
       "      <td>0.5417</td>\n",
       "      <td>0.1319</td>\n",
       "      <td>0.1608</td>\n",
       "      <td>0.2060</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.0231</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.1849</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1707.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17488</th>\n",
       "      <td>19488.0</td>\n",
       "      <td>456208</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>305955.0</td>\n",
       "      <td>21888.0</td>\n",
       "      <td>283500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-9844</td>\n",
       "      <td>-1266</td>\n",
       "      <td>-7511.0</td>\n",
       "      <td>-1053</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Industry: type 12</td>\n",
       "      <td>0.510609</td>\n",
       "      <td>0.240384</td>\n",
       "      <td>0.511892</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.1276</td>\n",
       "      <td>0.9826</td>\n",
       "      <td>0.7620</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7652</td>\n",
       "      <td>0.0116</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0761</td>\n",
       "      <td>0.0616</td>\n",
       "      <td>0.0789</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0673</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-499.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17489</th>\n",
       "      <td>19488.0</td>\n",
       "      <td>244238</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>6750.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Civil marriage</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-10016</td>\n",
       "      <td>-888</td>\n",
       "      <td>-7683.0</td>\n",
       "      <td>-1225</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>Core staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Trade: type 6</td>\n",
       "      <td>0.511806</td>\n",
       "      <td>0.241820</td>\n",
       "      <td>0.185202</td>\n",
       "      <td>0.0742</td>\n",
       "      <td>0.1276</td>\n",
       "      <td>0.9821</td>\n",
       "      <td>0.7552</td>\n",
       "      <td>...</td>\n",
       "      <td>0.7585</td>\n",
       "      <td>0.0116</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.3333</td>\n",
       "      <td>0.3750</td>\n",
       "      <td>0.0761</td>\n",
       "      <td>0.0616</td>\n",
       "      <td>0.0789</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>reg oper account</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0673</td>\n",
       "      <td>Panel</td>\n",
       "      <td>No</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-671.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17490</th>\n",
       "      <td>19489.0</td>\n",
       "      <td>449596</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>1</td>\n",
       "      <td>112500.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>27324.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-14502</td>\n",
       "      <td>-2058</td>\n",
       "      <td>-2250.0</td>\n",
       "      <td>-6124</td>\n",
       "      <td>18.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>High skill tech staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Transport: type 3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.423305</td>\n",
       "      <td>0.581484</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-550.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17491</th>\n",
       "      <td>19489.0</td>\n",
       "      <td>456213</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>258709.5</td>\n",
       "      <td>20439.0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>Spouse, partner</td>\n",
       "      <td>Working</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.020246</td>\n",
       "      <td>-14589</td>\n",
       "      <td>-2145</td>\n",
       "      <td>-2337.0</td>\n",
       "      <td>-6211</td>\n",
       "      <td>18.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>High skill tech staff</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Self-employed</td>\n",
       "      <td>0.585450</td>\n",
       "      <td>0.264486</td>\n",
       "      <td>0.565608</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-637.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17492</th>\n",
       "      <td>19490.0</td>\n",
       "      <td>456226</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>500566.5</td>\n",
       "      <td>34969.5</td>\n",
       "      <td>472500.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-14106</td>\n",
       "      <td>-226</td>\n",
       "      <td>-2463.0</td>\n",
       "      <td>-933</td>\n",
       "      <td>11.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Telecom</td>\n",
       "      <td>0.470808</td>\n",
       "      <td>0.737905</td>\n",
       "      <td>0.394495</td>\n",
       "      <td>0.0392</td>\n",
       "      <td>0.0402</td>\n",
       "      <td>0.9737</td>\n",
       "      <td>0.6396</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6444</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0182</td>\n",
       "      <td>0.0316</td>\n",
       "      <td>0.0312</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>not specified</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0272</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-611.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17493</th>\n",
       "      <td>19490.0</td>\n",
       "      <td>208832</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>Y</td>\n",
       "      <td>N</td>\n",
       "      <td>0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>407520.0</td>\n",
       "      <td>32197.5</td>\n",
       "      <td>360000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Commercial associate</td>\n",
       "      <td>Secondary / secondary special</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.031329</td>\n",
       "      <td>-14248</td>\n",
       "      <td>-277</td>\n",
       "      <td>-2605.0</td>\n",
       "      <td>-1075</td>\n",
       "      <td>12.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Managers</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Telecom</td>\n",
       "      <td>0.458642</td>\n",
       "      <td>0.767190</td>\n",
       "      <td>0.365617</td>\n",
       "      <td>0.0392</td>\n",
       "      <td>0.0402</td>\n",
       "      <td>0.9732</td>\n",
       "      <td>0.6328</td>\n",
       "      <td>...</td>\n",
       "      <td>0.6377</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.0690</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>0.2083</td>\n",
       "      <td>0.0182</td>\n",
       "      <td>0.0316</td>\n",
       "      <td>0.0312</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>not specified</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0272</td>\n",
       "      <td>Block</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-753.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>17494 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER  \\\n",
       "0         18.0      100279     0.0         Cash loans           M   \n",
       "1         18.0      100124     0.0         Cash loans           M   \n",
       "2         38.0      100955     0.0         Cash loans           F   \n",
       "3         38.0      190916     NaN         Cash loans           F   \n",
       "4         40.0      178701     0.0    Revolving loans           F   \n",
       "5         40.0      101020     NaN         Cash loans           F   \n",
       "6         53.0      247772     0.0         Cash loans           F   \n",
       "7         53.0      101243     NaN         Cash loans           F   \n",
       "8         56.0      101475     0.0         Cash loans           F   \n",
       "9         56.0      130172     0.0         Cash loans           F   \n",
       "10        69.0      101790     0.0         Cash loans           F   \n",
       "11        69.0      340385     NaN         Cash loans           F   \n",
       "12       125.0      103690     0.0         Cash loans           F   \n",
       "13       125.0      241943     NaN         Cash loans           F   \n",
       "14       125.0      442631     0.0         Cash loans           F   \n",
       "15       168.0      101044     0.0         Cash loans           F   \n",
       "16       168.0      103341     0.0         Cash loans           F   \n",
       "17       186.0      175892     NaN         Cash loans           F   \n",
       "18       186.0      105376     0.0         Cash loans           F   \n",
       "19       201.0      346825     0.0         Cash loans           F   \n",
       "20       201.0      420192     0.0         Cash loans           F   \n",
       "21       201.0      105965     NaN         Cash loans           F   \n",
       "22       240.0      107153     0.0         Cash loans           M   \n",
       "23       240.0      419583     0.0         Cash loans           M   \n",
       "24       246.0      206946     0.0    Revolving loans           F   \n",
       "...        ...         ...     ...                ...         ...   \n",
       "17469  19477.0      440336     NaN         Cash loans           F   \n",
       "17470  19478.0      456062     0.0         Cash loans           F   \n",
       "17471  19478.0      236302     NaN         Cash loans           F   \n",
       "17472  19479.0      161667     0.0         Cash loans           F   \n",
       "17473  19479.0      456070     0.0         Cash loans           F   \n",
       "17474  19480.0      456077     0.0         Cash loans           F   \n",
       "17475  19480.0      248526     NaN         Cash loans           F   \n",
       "17476  19481.0      296995     0.0         Cash loans           F   \n",
       "17477  19481.0      456100     0.0    Revolving loans           F   \n",
       "17478  19482.0      227746     0.0         Cash loans           M   \n",
       "17479  19482.0      456109     0.0    Revolving loans           M   \n",
       "17480  19483.0      155343     0.0         Cash loans           F   \n",
       "17481  19483.0      456150     0.0         Cash loans           F   \n",
       "17482  19484.0      228120     0.0         Cash loans           F   \n",
       "17483  19484.0      456151     0.0         Cash loans           F   \n",
       "17484  19485.0      141661     0.0         Cash loans           F   \n",
       "17485  19485.0      456163     0.0         Cash loans           F   \n",
       "17486  19486.0      294710     0.0         Cash loans           F   \n",
       "17487  19486.0      456169     NaN         Cash loans           F   \n",
       "17488  19488.0      456208     0.0         Cash loans           F   \n",
       "17489  19488.0      244238     NaN    Revolving loans           F   \n",
       "17490  19489.0      449596     0.0         Cash loans           F   \n",
       "17491  19489.0      456213     0.0         Cash loans           F   \n",
       "17492  19490.0      456226     0.0         Cash loans           F   \n",
       "17493  19490.0      208832     0.0         Cash loans           F   \n",
       "\n",
       "      FLAG_OWN_CAR FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  \\\n",
       "0                N               Y             0          180000.0   \n",
       "1                N               Y             0          225000.0   \n",
       "2                N               Y             0          112500.0   \n",
       "3                N               Y             0          135000.0   \n",
       "4                N               Y             0           90000.0   \n",
       "5                N               Y             0           90000.0   \n",
       "6                N               Y             0          143100.0   \n",
       "7                N               Y             0           90000.0   \n",
       "8                N               N             0           67500.0   \n",
       "9                N               Y             0           45000.0   \n",
       "10               N               Y             0          135000.0   \n",
       "11               N               Y             0          292500.0   \n",
       "12               N               Y             0           90000.0   \n",
       "13               N               Y             0           67500.0   \n",
       "14               N               N             0           94500.0   \n",
       "15               N               Y             1          157500.0   \n",
       "16               N               Y             1          135000.0   \n",
       "17               N               Y             0          135000.0   \n",
       "18               N               Y             0          162000.0   \n",
       "19               Y               Y             0           67500.0   \n",
       "20               N               Y             0          166500.0   \n",
       "21               N               Y             0          234000.0   \n",
       "22               Y               Y             1          157500.0   \n",
       "23               N               N             0          114750.0   \n",
       "24               N               Y             3          112500.0   \n",
       "...            ...             ...           ...               ...   \n",
       "17469            N               Y             0          252000.0   \n",
       "17470            N               Y             0          135000.0   \n",
       "17471            N               Y             0          135000.0   \n",
       "17472            Y               Y             0          180000.0   \n",
       "17473            Y               N             0          180000.0   \n",
       "17474            N               Y             0           67500.0   \n",
       "17475            N               Y             0           67500.0   \n",
       "17476            N               Y             0           63000.0   \n",
       "17477            N               Y             0           63000.0   \n",
       "17478            N               N             0           90000.0   \n",
       "17479            N               N             0          180000.0   \n",
       "17480            N               N             1           90000.0   \n",
       "17481            N               N             0           90000.0   \n",
       "17482            N               N             0          225000.0   \n",
       "17483            N               N             0           90000.0   \n",
       "17484            N               Y             0          135000.0   \n",
       "17485            N               Y             0          135000.0   \n",
       "17486            N               N             0          112500.0   \n",
       "17487            N               N             0           85500.0   \n",
       "17488            N               Y             1          135000.0   \n",
       "17489            N               Y             1          112500.0   \n",
       "17490            Y               N             1          112500.0   \n",
       "17491            Y               Y             1           90000.0   \n",
       "17492            Y               Y             0          225000.0   \n",
       "17493            Y               N             0          270000.0   \n",
       "\n",
       "       AMT_CREDIT  AMT_ANNUITY  AMT_GOODS_PRICE  NAME_TYPE_SUITE  \\\n",
       "0        254700.0      16407.0         225000.0    Unaccompanied   \n",
       "1        448272.0      28647.0         396000.0    Unaccompanied   \n",
       "2        101880.0      10053.0          90000.0    Unaccompanied   \n",
       "3        238500.0      24565.5         238500.0    Unaccompanied   \n",
       "4        270000.0      13500.0         270000.0    Unaccompanied   \n",
       "5        332946.0      16146.0         238500.0    Unaccompanied   \n",
       "6        729792.0      37260.0         630000.0    Unaccompanied   \n",
       "7        314055.0      13329.0         238500.0    Unaccompanied   \n",
       "8         95940.0       9472.5          90000.0    Unaccompanied   \n",
       "9        145557.0       7132.5         121500.0    Unaccompanied   \n",
       "10       582228.0      17154.0         486000.0    Unaccompanied   \n",
       "11       231097.5      18387.0         175500.0    Unaccompanied   \n",
       "12        68760.0       2596.5          45000.0    Unaccompanied   \n",
       "13       172021.5      12991.5         148500.0    Unaccompanied   \n",
       "14       312768.0      13905.0         270000.0    Unaccompanied   \n",
       "15      1097676.0      32224.5         958500.0    Unaccompanied   \n",
       "16       339241.5      12312.0         238500.0    Unaccompanied   \n",
       "17       597024.0      33466.5         540000.0    Unaccompanied   \n",
       "18       607500.0      26887.5         607500.0    Unaccompanied   \n",
       "19       805072.5      29047.5         679500.0    Unaccompanied   \n",
       "20       339228.0      17451.0         243000.0    Unaccompanied   \n",
       "21       314055.0      13329.0         238500.0    Unaccompanied   \n",
       "22       198000.0       9630.0         198000.0    Unaccompanied   \n",
       "23       900000.0      26446.5         900000.0    Unaccompanied   \n",
       "24       315000.0      15750.0         315000.0    Unaccompanied   \n",
       "...           ...          ...              ...              ...   \n",
       "17469    838453.5      42939.0         688500.0    Unaccompanied   \n",
       "17470   1056447.0      31018.5         922500.0         Children   \n",
       "17471    474444.0      18013.5         310500.0         Children   \n",
       "17472   1006920.0      39933.0         900000.0    Unaccompanied   \n",
       "17473    840996.0      24718.5         702000.0    Unaccompanied   \n",
       "17474    143910.0      14364.0         135000.0    Unaccompanied   \n",
       "17475    157500.0      11902.5         157500.0           Family   \n",
       "17476    152820.0      14418.0         135000.0           Family   \n",
       "17477    135000.0       6750.0         135000.0           Family   \n",
       "17478    314100.0      16573.5         225000.0    Unaccompanied   \n",
       "17479    270000.0      13500.0         270000.0    Unaccompanied   \n",
       "17480    490500.0      14472.0         490500.0    Unaccompanied   \n",
       "17481    270000.0      16645.5         270000.0    Unaccompanied   \n",
       "17482    271066.5      20394.0         234000.0           Family   \n",
       "17483    369720.0      22747.5         292500.0    Unaccompanied   \n",
       "17484    688090.5      22491.0         594000.0    Unaccompanied   \n",
       "17485    170640.0      11034.0         135000.0    Unaccompanied   \n",
       "17486    862560.0      25218.0         720000.0    Unaccompanied   \n",
       "17487    109008.0       7411.5          90000.0    Unaccompanied   \n",
       "17488    305955.0      21888.0         283500.0    Unaccompanied   \n",
       "17489    135000.0       6750.0         135000.0    Unaccompanied   \n",
       "17490    450000.0      27324.0         450000.0    Unaccompanied   \n",
       "17491    258709.5      20439.0         234000.0  Spouse, partner   \n",
       "17492    500566.5      34969.5         472500.0    Unaccompanied   \n",
       "17493    407520.0      32197.5         360000.0    Unaccompanied   \n",
       "\n",
       "           NAME_INCOME_TYPE            NAME_EDUCATION_TYPE  \\\n",
       "0                 Pensioner  Secondary / secondary special   \n",
       "1                 Pensioner  Secondary / secondary special   \n",
       "2                 Pensioner                Lower secondary   \n",
       "3                 Pensioner                Lower secondary   \n",
       "4                   Working  Secondary / secondary special   \n",
       "5                   Working  Secondary / secondary special   \n",
       "6                 Pensioner  Secondary / secondary special   \n",
       "7                 Pensioner  Secondary / secondary special   \n",
       "8                 Pensioner  Secondary / secondary special   \n",
       "9                 Pensioner  Secondary / secondary special   \n",
       "10                Pensioner  Secondary / secondary special   \n",
       "11                Pensioner  Secondary / secondary special   \n",
       "12                Pensioner  Secondary / secondary special   \n",
       "13                Pensioner  Secondary / secondary special   \n",
       "14                Pensioner  Secondary / secondary special   \n",
       "15                  Working  Secondary / secondary special   \n",
       "16                  Working  Secondary / secondary special   \n",
       "17                Pensioner  Secondary / secondary special   \n",
       "18                Pensioner  Secondary / secondary special   \n",
       "19                Pensioner  Secondary / secondary special   \n",
       "20                Pensioner  Secondary / secondary special   \n",
       "21                Pensioner  Secondary / secondary special   \n",
       "22                Pensioner  Secondary / secondary special   \n",
       "23                Pensioner  Secondary / secondary special   \n",
       "24                  Working              Incomplete higher   \n",
       "...                     ...                            ...   \n",
       "17469               Working               Higher education   \n",
       "17470             Pensioner  Secondary / secondary special   \n",
       "17471             Pensioner  Secondary / secondary special   \n",
       "17472             Pensioner  Secondary / secondary special   \n",
       "17473  Commercial associate  Secondary / secondary special   \n",
       "17474             Pensioner  Secondary / secondary special   \n",
       "17475             Pensioner  Secondary / secondary special   \n",
       "17476  Commercial associate  Secondary / secondary special   \n",
       "17477  Commercial associate  Secondary / secondary special   \n",
       "17478               Working  Secondary / secondary special   \n",
       "17479               Working  Secondary / secondary special   \n",
       "17480             Pensioner  Secondary / secondary special   \n",
       "17481             Pensioner  Secondary / secondary special   \n",
       "17482               Working               Higher education   \n",
       "17483               Working               Higher education   \n",
       "17484             Pensioner  Secondary / secondary special   \n",
       "17485             Pensioner  Secondary / secondary special   \n",
       "17486             Pensioner  Secondary / secondary special   \n",
       "17487             Pensioner  Secondary / secondary special   \n",
       "17488               Working               Higher education   \n",
       "17489               Working               Higher education   \n",
       "17490               Working  Secondary / secondary special   \n",
       "17491               Working  Secondary / secondary special   \n",
       "17492  Commercial associate  Secondary / secondary special   \n",
       "17493  Commercial associate  Secondary / secondary special   \n",
       "\n",
       "         NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "0                     Widow  House / apartment                    0.072508   \n",
       "1                     Widow  House / apartment                    0.072508   \n",
       "2      Single / not married  House / apartment                    0.030755   \n",
       "3      Single / not married  House / apartment                    0.030755   \n",
       "4                   Married  House / apartment                    0.035792   \n",
       "5                   Married  House / apartment                    0.035792   \n",
       "6                   Married  House / apartment                    0.010966   \n",
       "7                   Married  House / apartment                    0.010966   \n",
       "8                     Widow  House / apartment                    0.035792   \n",
       "9                     Widow  House / apartment                    0.035792   \n",
       "10                  Married  House / apartment                    0.005313   \n",
       "11                  Married  House / apartment                    0.006207   \n",
       "12                  Married  House / apartment                    0.009657   \n",
       "13                  Married  House / apartment                    0.030755   \n",
       "14                  Married  House / apartment                    0.019101   \n",
       "15                  Married  House / apartment                    0.025164   \n",
       "16                  Married  House / apartment                    0.025164   \n",
       "17                  Married  House / apartment                    0.030755   \n",
       "18                  Married  House / apartment                    0.014520   \n",
       "19                  Married  House / apartment                    0.035792   \n",
       "20                  Married  House / apartment                    0.008019   \n",
       "21                  Married  House / apartment                    0.035792   \n",
       "22                  Married  House / apartment                    0.030755   \n",
       "23                  Married  House / apartment                    0.018850   \n",
       "24                  Married  House / apartment                    0.010966   \n",
       "...                     ...                ...                         ...   \n",
       "17469        Civil marriage  House / apartment                    0.010032   \n",
       "17470               Married  House / apartment                    0.004960   \n",
       "17471               Married  House / apartment                    0.004960   \n",
       "17472               Married  House / apartment                    0.006629   \n",
       "17473               Married  House / apartment                    0.006629   \n",
       "17474        Civil marriage  House / apartment                    0.030755   \n",
       "17475        Civil marriage  House / apartment                    0.030755   \n",
       "17476               Married  House / apartment                    0.003069   \n",
       "17477               Married  House / apartment                    0.003069   \n",
       "17478               Married  House / apartment                    0.003069   \n",
       "17479               Married  House / apartment                    0.003069   \n",
       "17480             Separated  House / apartment                    0.018209   \n",
       "17481             Separated  House / apartment                    0.018209   \n",
       "17482               Married  House / apartment                    0.031329   \n",
       "17483               Married  House / apartment                    0.031329   \n",
       "17484               Married  House / apartment                    0.035792   \n",
       "17485               Married  House / apartment                    0.035792   \n",
       "17486               Married  House / apartment                    0.024610   \n",
       "17487               Married  House / apartment                    0.024610   \n",
       "17488        Civil marriage  House / apartment                    0.020246   \n",
       "17489        Civil marriage  House / apartment                    0.020246   \n",
       "17490               Married  House / apartment                    0.020246   \n",
       "17491               Married  House / apartment                    0.020246   \n",
       "17492               Married  House / apartment                    0.031329   \n",
       "17493               Married  House / apartment                    0.031329   \n",
       "\n",
       "       DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "0          -23946         365243            -6935.0            -3948   \n",
       "1          -24051         365243            -7040.0            -4053   \n",
       "2          -22321         365243           -13611.0            -2523   \n",
       "3          -22609         365243              -73.0            -2811   \n",
       "4          -16416          -1223            -2542.0            -4382   \n",
       "5          -16649          -1456            -2775.0             -192   \n",
       "6          -21491         365243             -332.0              -86   \n",
       "7          -21590         365243             -401.0             -185   \n",
       "8          -21991         365243            -7720.0            -4780   \n",
       "9          -22154         365243            -7913.0            -4943   \n",
       "10         -17479         365243           -10234.0            -1015   \n",
       "11         -22056         365243            -4512.0            -5312   \n",
       "12         -22517         365243            -3714.0            -4665   \n",
       "13         -23237         365243             -206.0            -4609   \n",
       "14         -23571         365243           -15940.0            -4130   \n",
       "15         -15085          -8508             -739.0            -2020   \n",
       "16         -15172          -8595             -826.0            -2107   \n",
       "17         -21545         365243           -10349.0            -4705   \n",
       "18         -22299         365243            -2233.0            -2303   \n",
       "19         -20990         365243            -6020.0            -4450   \n",
       "20         -21889         365243            -3102.0            -4216   \n",
       "21         -23571         365243            -4623.0            -4628   \n",
       "22         -16388         365243            -2583.0            -4330   \n",
       "23         -18615         365243            -6584.0            -2164   \n",
       "24         -13738          -5827            -5919.0            -4491   \n",
       "...           ...            ...                ...              ...   \n",
       "17469      -18793         -11358            -3482.0            -2326   \n",
       "17470      -22122         365243            -7997.0            -4703   \n",
       "17471      -22332         365243            -8207.0            -4913   \n",
       "17472      -18776         365243            -1886.0            -2313   \n",
       "17473      -18800          -4699            -1910.0            -2337   \n",
       "17474      -22355         365243            -2200.0            -3765   \n",
       "17475      -22585         365243            -2430.0            -3995   \n",
       "17476      -16557          -1277             -810.0              -99   \n",
       "17477      -16557          -1277             -810.0              -99   \n",
       "17478      -20042          -2455            -8616.0            -3443   \n",
       "17479      -20224          -2637            -8798.0            -3625   \n",
       "17480      -20575         365243           -11983.0            -4114   \n",
       "17481      -20768         365243           -12176.0            -4307   \n",
       "17482      -15358          -4314            -1724.0            -2967   \n",
       "17483      -15450          -4406            -1816.0            -3059   \n",
       "17484      -21633         365243            -2445.0            -4909   \n",
       "17485      -21755         365243            -2567.0            -5031   \n",
       "17486      -22712         365243           -11805.0            -3705   \n",
       "17487      -22995         365243           -12088.0            -3988   \n",
       "17488       -9844          -1266            -7511.0            -1053   \n",
       "17489      -10016           -888            -7683.0            -1225   \n",
       "17490      -14502          -2058            -2250.0            -6124   \n",
       "17491      -14589          -2145            -2337.0            -6211   \n",
       "17492      -14106           -226            -2463.0             -933   \n",
       "17493      -14248           -277            -2605.0            -1075   \n",
       "\n",
       "       OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "0              NaN           1               0                0   \n",
       "1              NaN           1               0                0   \n",
       "2              NaN           1               0                0   \n",
       "3              NaN           1               0                0   \n",
       "4              NaN           1               1                0   \n",
       "5              NaN           1               1                0   \n",
       "6              NaN           1               0                0   \n",
       "7              NaN           1               0                0   \n",
       "8              NaN           1               0                0   \n",
       "9              NaN           1               0                0   \n",
       "10             NaN           1               0                0   \n",
       "11             NaN           1               0                0   \n",
       "12             NaN           1               0                0   \n",
       "13             NaN           1               0                0   \n",
       "14             NaN           1               0                0   \n",
       "15             NaN           1               1                0   \n",
       "16             NaN           1               1                0   \n",
       "17             NaN           1               0                0   \n",
       "18             NaN           1               0                0   \n",
       "19            25.0           1               0                0   \n",
       "20             NaN           1               0                0   \n",
       "21             NaN           1               0                0   \n",
       "22             1.0           1               0                0   \n",
       "23             NaN           1               0                0   \n",
       "24             NaN           1               1                0   \n",
       "...            ...         ...             ...              ...   \n",
       "17469          NaN           1               1                0   \n",
       "17470          NaN           1               0                0   \n",
       "17471          NaN           1               0                0   \n",
       "17472         11.0           1               0                0   \n",
       "17473         11.0           1               1                0   \n",
       "17474          NaN           1               0                0   \n",
       "17475          NaN           1               0                0   \n",
       "17476          NaN           1               1                0   \n",
       "17477          NaN           1               1                0   \n",
       "17478          NaN           1               1                0   \n",
       "17479          NaN           1               1                0   \n",
       "17480          NaN           1               0                0   \n",
       "17481          NaN           1               0                0   \n",
       "17482          NaN           1               1                0   \n",
       "17483          NaN           1               1                0   \n",
       "17484          NaN           1               0                0   \n",
       "17485          NaN           1               0                0   \n",
       "17486          NaN           1               0                0   \n",
       "17487          NaN           1               0                0   \n",
       "17488          NaN           1               1                0   \n",
       "17489          NaN           1               1                0   \n",
       "17490         18.0           1               1                1   \n",
       "17491         18.0           1               1                1   \n",
       "17492         11.0           1               1                0   \n",
       "17493         12.0           1               1                0   \n",
       "\n",
       "       FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL        OCCUPATION_TYPE  \\\n",
       "0                     1           0           0                    NaN   \n",
       "1                     1           1           1                    NaN   \n",
       "2                     1           0           0                    NaN   \n",
       "3                     1           1           0                    NaN   \n",
       "4                     1           0           0                    NaN   \n",
       "5                     1           0           0                    NaN   \n",
       "6                     1           0           0                    NaN   \n",
       "7                     1           0           0                    NaN   \n",
       "8                     1           1           0                    NaN   \n",
       "9                     1           0           0                    NaN   \n",
       "10                    1           0           0                    NaN   \n",
       "11                    1           0           1                    NaN   \n",
       "12                    1           0           0                    NaN   \n",
       "13                    1           0           0                    NaN   \n",
       "14                    1           0           0                    NaN   \n",
       "15                    1           0           0               Laborers   \n",
       "16                    1           0           0               Laborers   \n",
       "17                    1           0           0                    NaN   \n",
       "18                    1           1           0                    NaN   \n",
       "19                    1           0           0                    NaN   \n",
       "20                    1           0           0                    NaN   \n",
       "21                    1           0           0                    NaN   \n",
       "22                    1           0           0                    NaN   \n",
       "23                    1           0           0                    NaN   \n",
       "24                    1           0           0          Cooking staff   \n",
       "...                 ...         ...         ...                    ...   \n",
       "17469                 1           0           0                    NaN   \n",
       "17470                 1           0           0                    NaN   \n",
       "17471                 1           0           0                    NaN   \n",
       "17472                 1           1           0                    NaN   \n",
       "17473                 1           0           0               Managers   \n",
       "17474                 1           0           0                    NaN   \n",
       "17475                 1           0           0                    NaN   \n",
       "17476                 1           0           0            Sales staff   \n",
       "17477                 1           0           0            Sales staff   \n",
       "17478                 1           0           0                Drivers   \n",
       "17479                 1           0           0                Drivers   \n",
       "17480                 1           0           0                    NaN   \n",
       "17481                 1           0           0                    NaN   \n",
       "17482                 1           0           0            Sales staff   \n",
       "17483                 1           0           0            Sales staff   \n",
       "17484                 1           0           0                    NaN   \n",
       "17485                 1           0           0                    NaN   \n",
       "17486                 1           0           0                    NaN   \n",
       "17487                 1           0           0                    NaN   \n",
       "17488                 1           0           0                    NaN   \n",
       "17489                 1           0           1             Core staff   \n",
       "17490                 1           1           0  High skill tech staff   \n",
       "17491                 1           1           0  High skill tech staff   \n",
       "17492                 1           0           0               Managers   \n",
       "17493                 1           0           0               Managers   \n",
       "\n",
       "       CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "0                  1.0                     1                            1   \n",
       "1                  1.0                     1                            1   \n",
       "2                  1.0                     2                            2   \n",
       "3                  1.0                     2                            2   \n",
       "4                  2.0                     2                            2   \n",
       "5                  2.0                     2                            2   \n",
       "6                  2.0                     2                            2   \n",
       "7                  2.0                     2                            2   \n",
       "8                  1.0                     2                            2   \n",
       "9                  1.0                     2                            2   \n",
       "10                 2.0                     2                            2   \n",
       "11                 2.0                     2                            2   \n",
       "12                 2.0                     2                            2   \n",
       "13                 2.0                     2                            2   \n",
       "14                 2.0                     2                            2   \n",
       "15                 3.0                     2                            2   \n",
       "16                 3.0                     2                            2   \n",
       "17                 2.0                     2                            2   \n",
       "18                 2.0                     2                            2   \n",
       "19                 2.0                     2                            2   \n",
       "20                 2.0                     2                            2   \n",
       "21                 2.0                     2                            2   \n",
       "22                 3.0                     2                            2   \n",
       "23                 2.0                     2                            2   \n",
       "24                 5.0                     2                            2   \n",
       "...                ...                   ...                          ...   \n",
       "17469              2.0                     2                            2   \n",
       "17470              2.0                     2                            2   \n",
       "17471              2.0                     2                            2   \n",
       "17472              2.0                     2                            2   \n",
       "17473              2.0                     2                            2   \n",
       "17474              2.0                     2                            2   \n",
       "17475              2.0                     2                            2   \n",
       "17476              2.0                     3                            3   \n",
       "17477              2.0                     3                            3   \n",
       "17478              2.0                     3                            3   \n",
       "17479              2.0                     3                            3   \n",
       "17480              2.0                     3                            3   \n",
       "17481              1.0                     3                            3   \n",
       "17482              2.0                     2                            2   \n",
       "17483              2.0                     2                            2   \n",
       "17484              2.0                     2                            2   \n",
       "17485              2.0                     2                            2   \n",
       "17486              2.0                     2                            2   \n",
       "17487              2.0                     2                            2   \n",
       "17488              3.0                     3                            3   \n",
       "17489              3.0                     3                            3   \n",
       "17490              3.0                     3                            3   \n",
       "17491              3.0                     3                            3   \n",
       "17492              2.0                     2                            2   \n",
       "17493              2.0                     2                            2   \n",
       "\n",
       "      WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "0                      WEDNESDAY                       16   \n",
       "1                      WEDNESDAY                       17   \n",
       "2                         FRIDAY                       10   \n",
       "3                       SATURDAY                       10   \n",
       "4                      WEDNESDAY                       12   \n",
       "5                         FRIDAY                        9   \n",
       "6                       THURSDAY                       14   \n",
       "7                         FRIDAY                       12   \n",
       "8                        TUESDAY                        9   \n",
       "9                       THURSDAY                       10   \n",
       "10                     WEDNESDAY                       11   \n",
       "11                       TUESDAY                       15   \n",
       "12                        SUNDAY                       10   \n",
       "13                        FRIDAY                       10   \n",
       "14                      SATURDAY                       13   \n",
       "15                       TUESDAY                        8   \n",
       "16                        FRIDAY                       11   \n",
       "17                        FRIDAY                       12   \n",
       "18                        FRIDAY                       10   \n",
       "19                       TUESDAY                       12   \n",
       "20                       TUESDAY                       13   \n",
       "21                       TUESDAY                       15   \n",
       "22                        FRIDAY                       13   \n",
       "23                      SATURDAY                       13   \n",
       "24                        FRIDAY                       17   \n",
       "...                          ...                      ...   \n",
       "17469                   THURSDAY                        6   \n",
       "17470                     MONDAY                       14   \n",
       "17471                     MONDAY                       12   \n",
       "17472                     FRIDAY                        5   \n",
       "17473                     MONDAY                       10   \n",
       "17474                     FRIDAY                       10   \n",
       "17475                   THURSDAY                        9   \n",
       "17476                  WEDNESDAY                       12   \n",
       "17477                  WEDNESDAY                       12   \n",
       "17478                   THURSDAY                       18   \n",
       "17479                   THURSDAY                       15   \n",
       "17480                  WEDNESDAY                       14   \n",
       "17481                     SUNDAY                        7   \n",
       "17482                   THURSDAY                       13   \n",
       "17483                     FRIDAY                       11   \n",
       "17484                     FRIDAY                       13   \n",
       "17485                     MONDAY                       10   \n",
       "17486                   SATURDAY                       13   \n",
       "17487                   SATURDAY                       15   \n",
       "17488                   THURSDAY                        9   \n",
       "17489                     MONDAY                       11   \n",
       "17490                   THURSDAY                       10   \n",
       "17491                   THURSDAY                       13   \n",
       "17492                   THURSDAY                       15   \n",
       "17493                     FRIDAY                       11   \n",
       "\n",
       "       REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "0                               0                           0   \n",
       "1                               0                           0   \n",
       "2                               0                           0   \n",
       "3                               0                           0   \n",
       "4                               0                           0   \n",
       "5                               0                           0   \n",
       "6                               0                           0   \n",
       "7                               0                           0   \n",
       "8                               0                           0   \n",
       "9                               0                           0   \n",
       "10                              0                           0   \n",
       "11                              0                           0   \n",
       "12                              0                           0   \n",
       "13                              0                           0   \n",
       "14                              0                           0   \n",
       "15                              0                           0   \n",
       "16                              0                           0   \n",
       "17                              0                           0   \n",
       "18                              0                           0   \n",
       "19                              0                           0   \n",
       "20                              0                           0   \n",
       "21                              0                           0   \n",
       "22                              0                           0   \n",
       "23                              0                           0   \n",
       "24                              0                           0   \n",
       "...                           ...                         ...   \n",
       "17469                           0                           0   \n",
       "17470                           0                           0   \n",
       "17471                           0                           0   \n",
       "17472                           0                           0   \n",
       "17473                           0                           0   \n",
       "17474                           0                           0   \n",
       "17475                           0                           0   \n",
       "17476                           0                           0   \n",
       "17477                           0                           0   \n",
       "17478                           0                           0   \n",
       "17479                           0                           0   \n",
       "17480                           0                           0   \n",
       "17481                           0                           0   \n",
       "17482                           0                           0   \n",
       "17483                           0                           0   \n",
       "17484                           0                           0   \n",
       "17485                           0                           0   \n",
       "17486                           0                           0   \n",
       "17487                           0                           0   \n",
       "17488                           0                           0   \n",
       "17489                           0                           0   \n",
       "17490                           0                           0   \n",
       "17491                           0                           0   \n",
       "17492                           0                           0   \n",
       "17493                           0                           0   \n",
       "\n",
       "       LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "0                                0                       0   \n",
       "1                                0                       0   \n",
       "2                                0                       0   \n",
       "3                                0                       0   \n",
       "4                                0                       0   \n",
       "5                                0                       0   \n",
       "6                                0                       0   \n",
       "7                                0                       0   \n",
       "8                                0                       0   \n",
       "9                                0                       0   \n",
       "10                               0                       0   \n",
       "11                               0                       0   \n",
       "12                               0                       0   \n",
       "13                               0                       0   \n",
       "14                               0                       0   \n",
       "15                               0                       0   \n",
       "16                               0                       0   \n",
       "17                               0                       0   \n",
       "18                               0                       0   \n",
       "19                               0                       0   \n",
       "20                               0                       0   \n",
       "21                               0                       0   \n",
       "22                               0                       0   \n",
       "23                               0                       0   \n",
       "24                               0                       0   \n",
       "...                            ...                     ...   \n",
       "17469                            0                       0   \n",
       "17470                            0                       0   \n",
       "17471                            0                       0   \n",
       "17472                            0                       0   \n",
       "17473                            0                       0   \n",
       "17474                            0                       0   \n",
       "17475                            0                       0   \n",
       "17476                            0                       0   \n",
       "17477                            0                       0   \n",
       "17478                            0                       0   \n",
       "17479                            0                       0   \n",
       "17480                            0                       0   \n",
       "17481                            0                       0   \n",
       "17482                            0                       0   \n",
       "17483                            0                       0   \n",
       "17484                            0                       0   \n",
       "17485                            0                       0   \n",
       "17486                            0                       0   \n",
       "17487                            0                       0   \n",
       "17488                            0                       0   \n",
       "17489                            0                       0   \n",
       "17490                            0                       0   \n",
       "17491                            0                       0   \n",
       "17492                            0                       0   \n",
       "17493                            0                       0   \n",
       "\n",
       "       REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY  \\\n",
       "0                           0                        0   \n",
       "1                           0                        0   \n",
       "2                           0                        0   \n",
       "3                           0                        0   \n",
       "4                           1                        1   \n",
       "5                           1                        1   \n",
       "6                           0                        0   \n",
       "7                           0                        0   \n",
       "8                           0                        0   \n",
       "9                           0                        0   \n",
       "10                          0                        0   \n",
       "11                          0                        0   \n",
       "12                          0                        0   \n",
       "13                          0                        0   \n",
       "14                          0                        0   \n",
       "15                          1                        1   \n",
       "16                          1                        1   \n",
       "17                          0                        0   \n",
       "18                          0                        0   \n",
       "19                          0                        0   \n",
       "20                          0                        0   \n",
       "21                          0                        0   \n",
       "22                          0                        0   \n",
       "23                          0                        0   \n",
       "24                          0                        0   \n",
       "...                       ...                      ...   \n",
       "17469                       0                        0   \n",
       "17470                       0                        0   \n",
       "17471                       0                        0   \n",
       "17472                       0                        0   \n",
       "17473                       0                        0   \n",
       "17474                       0                        0   \n",
       "17475                       0                        0   \n",
       "17476                       0                        0   \n",
       "17477                       0                        0   \n",
       "17478                       0                        0   \n",
       "17479                       0                        0   \n",
       "17480                       0                        0   \n",
       "17481                       0                        0   \n",
       "17482                       0                        0   \n",
       "17483                       0                        0   \n",
       "17484                       0                        0   \n",
       "17485                       0                        0   \n",
       "17486                       0                        0   \n",
       "17487                       0                        0   \n",
       "17488                       0                        0   \n",
       "17489                       0                        0   \n",
       "17490                       0                        0   \n",
       "17491                       0                        0   \n",
       "17492                       0                        0   \n",
       "17493                       0                        0   \n",
       "\n",
       "            ORGANIZATION_TYPE  EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  \\\n",
       "0                         XNA           NaN      0.458685      0.528093   \n",
       "1                         XNA           NaN      0.710318      0.554947   \n",
       "2                         XNA           NaN      0.664900      0.504681   \n",
       "3                         XNA      0.279026      0.504692      0.466864   \n",
       "4      Business Entity Type 3      0.479804      0.514119           NaN   \n",
       "5      Business Entity Type 3           NaN      0.575513           NaN   \n",
       "6                         XNA           NaN      0.303433      0.634706   \n",
       "7                         XNA           NaN      0.172657      0.659406   \n",
       "8                         XNA           NaN      0.569745      0.602386   \n",
       "9                         XNA           NaN      0.609567      0.350696   \n",
       "10                        XNA           NaN      0.656749      0.554947   \n",
       "11                        XNA           NaN      0.554697      0.239226   \n",
       "12                        XNA           NaN      0.620249      0.829750   \n",
       "13                        XNA      0.759941      0.711311      0.761026   \n",
       "14                        XNA           NaN      0.714069      0.429424   \n",
       "15           Industry: type 5           NaN      0.265256      0.735221   \n",
       "16           Industry: type 5           NaN      0.263144      0.713631   \n",
       "17                        XNA      0.756023      0.451965      0.622922   \n",
       "18                        XNA      0.547789      0.372422      0.709189   \n",
       "19                        XNA      0.283881      0.606143      0.477649   \n",
       "20                        XNA           NaN      0.501434      0.411849   \n",
       "21                        XNA           NaN      0.676461      0.689479   \n",
       "22                        XNA           NaN      0.467139      0.447179   \n",
       "23                        XNA           NaN      0.418705      0.581484   \n",
       "24               Kindergarten           NaN      0.129925      0.328063   \n",
       "...                       ...           ...           ...           ...   \n",
       "17469  Business Entity Type 2           NaN      0.686566      0.586740   \n",
       "17470                     XNA      0.793389      0.747837      0.746300   \n",
       "17471                     XNA      0.627384      0.658738      0.754406   \n",
       "17472                     XNA           NaN      0.685153      0.431192   \n",
       "17473           Self-employed           NaN      0.350089      0.265049   \n",
       "17474                     XNA      0.702671      0.111986      0.641368   \n",
       "17475                     XNA      0.667471      0.004513      0.574447   \n",
       "17476           Self-employed           NaN           NaN      0.853731   \n",
       "17477           Self-employed           NaN      0.472924      0.853731   \n",
       "17478  Business Entity Type 2           NaN      0.695752      0.758393   \n",
       "17479  Business Entity Type 2           NaN      0.674328      0.719491   \n",
       "17480                     XNA           NaN      0.335201      0.581484   \n",
       "17481                     XNA           NaN      0.319830      0.617826   \n",
       "17482           Self-employed      0.757658      0.680811      0.636376   \n",
       "17483           Self-employed      0.682714      0.499351      0.591977   \n",
       "17484                     XNA      0.839565      0.354225      0.358951   \n",
       "17485                     XNA      0.890056      0.355126      0.363945   \n",
       "17486                     XNA           NaN      0.506212           NaN   \n",
       "17487                     XNA           NaN      0.465881           NaN   \n",
       "17488       Industry: type 12      0.510609      0.240384      0.511892   \n",
       "17489           Trade: type 6      0.511806      0.241820      0.185202   \n",
       "17490       Transport: type 3           NaN      0.423305      0.581484   \n",
       "17491           Self-employed      0.585450      0.264486      0.565608   \n",
       "17492                 Telecom      0.470808      0.737905      0.394495   \n",
       "17493                 Telecom      0.458642      0.767190      0.365617   \n",
       "\n",
       "       APARTMENTS_AVG  BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  \\\n",
       "0              0.3041            0.1854                       0.9791   \n",
       "1              0.2959            0.1785                       0.9786   \n",
       "2                 NaN               NaN                          NaN   \n",
       "3                 NaN               NaN                          NaN   \n",
       "4                 NaN               NaN                          NaN   \n",
       "5                 NaN               NaN                          NaN   \n",
       "6                 NaN               NaN                          NaN   \n",
       "7                 NaN               NaN                          NaN   \n",
       "8                 NaN               NaN                          NaN   \n",
       "9                 NaN               NaN                          NaN   \n",
       "10                NaN               NaN                          NaN   \n",
       "11                NaN               NaN                          NaN   \n",
       "12                NaN               NaN                          NaN   \n",
       "13                NaN               NaN                          NaN   \n",
       "14                NaN               NaN                          NaN   \n",
       "15                NaN               NaN                          NaN   \n",
       "16                NaN               NaN                          NaN   \n",
       "17                NaN               NaN                          NaN   \n",
       "18                NaN               NaN                          NaN   \n",
       "19                NaN               NaN                          NaN   \n",
       "20                NaN               NaN                          NaN   \n",
       "21                NaN               NaN                          NaN   \n",
       "22                NaN               NaN                          NaN   \n",
       "23                NaN               NaN                          NaN   \n",
       "24                NaN               NaN                          NaN   \n",
       "...               ...               ...                          ...   \n",
       "17469          0.0825            0.0802                       0.9752   \n",
       "17470             NaN               NaN                          NaN   \n",
       "17471             NaN               NaN                          NaN   \n",
       "17472          0.0454            0.0000                       0.9901   \n",
       "17473          0.0454            0.0000                       0.9901   \n",
       "17474             NaN               NaN                          NaN   \n",
       "17475             NaN               NaN                          NaN   \n",
       "17476             NaN               NaN                          NaN   \n",
       "17477             NaN               NaN                          NaN   \n",
       "17478          0.0742            0.0555                       0.9841   \n",
       "17479          0.0742            0.0555                       0.9836   \n",
       "17480          0.0835            0.0295                       0.9831   \n",
       "17481          0.0835            0.0295                       0.9826   \n",
       "17482          0.0381            0.0385                       0.9697   \n",
       "17483          0.0381            0.0385                       0.9697   \n",
       "17484             NaN               NaN                          NaN   \n",
       "17485             NaN               NaN                          NaN   \n",
       "17486          0.1938            0.1218                       0.9916   \n",
       "17487          0.1938            0.1218                       0.9911   \n",
       "17488          0.0742            0.1276                       0.9826   \n",
       "17489          0.0742            0.1276                       0.9821   \n",
       "17490             NaN               NaN                          NaN   \n",
       "17491             NaN               NaN                          NaN   \n",
       "17492          0.0392            0.0402                       0.9737   \n",
       "17493          0.0392            0.0402                       0.9732   \n",
       "\n",
       "       YEARS_BUILD_AVG ...   YEARS_BUILD_MEDI  COMMONAREA_MEDI  \\\n",
       "0               0.7144 ...             0.7182           0.0000   \n",
       "1               0.7076 ...             0.7115           0.0000   \n",
       "2                  NaN ...                NaN              NaN   \n",
       "3                  NaN ...                NaN              NaN   \n",
       "4                  NaN ...                NaN              NaN   \n",
       "5                  NaN ...                NaN              NaN   \n",
       "6                  NaN ...                NaN              NaN   \n",
       "7                  NaN ...                NaN              NaN   \n",
       "8                  NaN ...                NaN              NaN   \n",
       "9                  NaN ...                NaN              NaN   \n",
       "10                 NaN ...                NaN              NaN   \n",
       "11                 NaN ...                NaN              NaN   \n",
       "12                 NaN ...                NaN              NaN   \n",
       "13                 NaN ...                NaN              NaN   \n",
       "14                 NaN ...                NaN              NaN   \n",
       "15                 NaN ...                NaN              NaN   \n",
       "16                 NaN ...                NaN              NaN   \n",
       "17                 NaN ...                NaN              NaN   \n",
       "18                 NaN ...                NaN              NaN   \n",
       "19                 NaN ...                NaN              NaN   \n",
       "20                 NaN ...                NaN              NaN   \n",
       "21                 NaN ...                NaN              NaN   \n",
       "22                 NaN ...                NaN              NaN   \n",
       "23                 NaN ...                NaN              NaN   \n",
       "24                 NaN ...                NaN              NaN   \n",
       "...                ... ...                ...              ...   \n",
       "17469           0.6600 ...             0.6645           0.0277   \n",
       "17470              NaN ...                NaN              NaN   \n",
       "17471              NaN ...                NaN              NaN   \n",
       "17472           0.9864 ...             0.9866           0.0155   \n",
       "17473           0.9864 ...             0.9866           0.0155   \n",
       "17474              NaN ...                NaN              NaN   \n",
       "17475              NaN ...                NaN              NaN   \n",
       "17476              NaN ...                NaN              NaN   \n",
       "17477              NaN ...                NaN              NaN   \n",
       "17478              NaN ...                NaN              NaN   \n",
       "17479              NaN ...                NaN              NaN   \n",
       "17480           0.7688 ...             0.7719           0.0000   \n",
       "17481           0.7620 ...             0.7652           0.0000   \n",
       "17482           0.5852 ...             0.5907           0.0255   \n",
       "17483           0.5852 ...             0.5907           0.0255   \n",
       "17484              NaN ...                NaN              NaN   \n",
       "17485              NaN ...                NaN              NaN   \n",
       "17486           0.8844 ...             0.8859           0.0501   \n",
       "17487           0.8776 ...             0.8792           0.0501   \n",
       "17488           0.7620 ...             0.7652           0.0116   \n",
       "17489           0.7552 ...             0.7585           0.0116   \n",
       "17490              NaN ...                NaN              NaN   \n",
       "17491              NaN ...                NaN              NaN   \n",
       "17492           0.6396 ...             0.6444           0.0038   \n",
       "17493           0.6328 ...             0.6377           0.0038   \n",
       "\n",
       "       ELEVATORS_MEDI  ENTRANCES_MEDI  FLOORSMAX_MEDI  FLOORSMIN_MEDI  \\\n",
       "0                0.32          0.2759          0.3333          0.0417   \n",
       "1                0.32          0.2759          0.3333          0.3750   \n",
       "2                 NaN             NaN             NaN             NaN   \n",
       "3                 NaN             NaN             NaN             NaN   \n",
       "4                 NaN             NaN             NaN             NaN   \n",
       "5                 NaN             NaN             NaN             NaN   \n",
       "6                 NaN             NaN             NaN             NaN   \n",
       "7                 NaN             NaN             NaN             NaN   \n",
       "8                 NaN             NaN             NaN             NaN   \n",
       "9                 NaN             NaN             NaN             NaN   \n",
       "10                NaN             NaN             NaN             NaN   \n",
       "11                NaN             NaN             NaN             NaN   \n",
       "12                NaN             NaN             NaN             NaN   \n",
       "13                NaN             NaN             NaN             NaN   \n",
       "14                NaN             NaN             NaN             NaN   \n",
       "15                NaN             NaN             NaN             NaN   \n",
       "16                NaN             NaN             NaN             NaN   \n",
       "17                NaN             NaN             NaN             NaN   \n",
       "18                NaN             NaN             NaN             NaN   \n",
       "19                NaN             NaN             NaN             NaN   \n",
       "20                NaN             NaN             NaN             NaN   \n",
       "21                NaN             NaN             NaN             NaN   \n",
       "22                NaN             NaN             NaN             NaN   \n",
       "23                NaN             NaN             NaN             NaN   \n",
       "24                NaN             NaN             NaN             NaN   \n",
       "...               ...             ...             ...             ...   \n",
       "17469            0.00          0.1379          0.1667          0.2083   \n",
       "17470             NaN             NaN             NaN             NaN   \n",
       "17471             NaN             NaN             NaN             NaN   \n",
       "17472            0.04          0.0345          0.2917          0.3333   \n",
       "17473            0.04          0.0345          0.2917          0.3333   \n",
       "17474             NaN             NaN             NaN             NaN   \n",
       "17475             NaN             NaN             NaN             NaN   \n",
       "17476             NaN             NaN             NaN             NaN   \n",
       "17477             NaN             NaN             NaN             NaN   \n",
       "17478            0.08          0.0690          0.3333             NaN   \n",
       "17479            0.08          0.0690          0.3333             NaN   \n",
       "17480            0.00          0.0345          0.1667          0.2083   \n",
       "17481            0.00          0.0345          0.1667          0.2083   \n",
       "17482            0.00          0.1034          0.1250          0.1667   \n",
       "17483            0.00          0.1034          0.1250          0.1667   \n",
       "17484             NaN             NaN             NaN             NaN   \n",
       "17485             NaN             NaN             NaN             NaN   \n",
       "17486            0.20          0.1379          0.5000          0.5417   \n",
       "17487            0.20          0.1379          0.5000          0.5417   \n",
       "17488            0.08          0.0690          0.3333          0.3750   \n",
       "17489            0.08          0.0690          0.3333          0.3750   \n",
       "17490             NaN             NaN             NaN             NaN   \n",
       "17491             NaN             NaN             NaN             NaN   \n",
       "17492            0.00          0.0690          0.1667          0.2083   \n",
       "17493            0.00          0.0690          0.1667          0.2083   \n",
       "\n",
       "       LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  LIVINGAREA_MEDI  \\\n",
       "0             0.0000                 0.2454           0.2861   \n",
       "1             0.0000                 0.2454           0.2741   \n",
       "2                NaN                    NaN              NaN   \n",
       "3                NaN                    NaN              NaN   \n",
       "4                NaN                    NaN              NaN   \n",
       "5                NaN                    NaN              NaN   \n",
       "6                NaN                    NaN              NaN   \n",
       "7                NaN                    NaN              NaN   \n",
       "8                NaN                    NaN              NaN   \n",
       "9                NaN                    NaN              NaN   \n",
       "10               NaN                    NaN              NaN   \n",
       "11               NaN                    NaN              NaN   \n",
       "12               NaN                    NaN              NaN   \n",
       "13               NaN                    NaN              NaN   \n",
       "14               NaN                    NaN              NaN   \n",
       "15               NaN                    NaN              NaN   \n",
       "16               NaN                    NaN              NaN   \n",
       "17               NaN                    NaN              NaN   \n",
       "18               NaN                    NaN              NaN   \n",
       "19               NaN                    NaN              NaN   \n",
       "20               NaN                    NaN              NaN   \n",
       "21               NaN                    NaN              NaN   \n",
       "22               NaN                    NaN              NaN   \n",
       "23               NaN                    NaN              NaN   \n",
       "24               NaN                    NaN              NaN   \n",
       "...              ...                    ...              ...   \n",
       "17469         0.0745                 0.0684           0.0652   \n",
       "17470            NaN                    NaN              NaN   \n",
       "17471            NaN                    NaN              NaN   \n",
       "17472         0.0099                 0.0355           0.0457   \n",
       "17473         0.0099                 0.0355           0.0457   \n",
       "17474            NaN                    NaN              NaN   \n",
       "17475            NaN                    NaN              NaN   \n",
       "17476            NaN                    NaN              NaN   \n",
       "17477            NaN                    NaN              NaN   \n",
       "17478         0.0342                    NaN           0.0461   \n",
       "17479         0.0342                    NaN           0.0461   \n",
       "17480         0.0326                 0.0676           0.0291   \n",
       "17481         0.0326                 0.0676           0.0291   \n",
       "17482         0.2542                 0.0274           0.0204   \n",
       "17483         0.2542                 0.0274           0.0204   \n",
       "17484            NaN                    NaN              NaN   \n",
       "17485            NaN                    NaN              NaN   \n",
       "17486         0.1319                 0.1608           0.2060   \n",
       "17487         0.1319                 0.1608           0.2060   \n",
       "17488         0.0761                 0.0616           0.0789   \n",
       "17489         0.0761                 0.0616           0.0789   \n",
       "17490            NaN                    NaN              NaN   \n",
       "17491            NaN                    NaN              NaN   \n",
       "17492         0.0182                 0.0316           0.0312   \n",
       "17493         0.0182                 0.0316           0.0312   \n",
       "\n",
       "       NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  FONDKAPREMONT_MODE  \\\n",
       "0                        0.0311              0.0092    reg oper account   \n",
       "1                        0.0000              0.0062    reg oper account   \n",
       "2                           NaN                 NaN                 NaN   \n",
       "3                           NaN                 NaN                 NaN   \n",
       "4                           NaN                 NaN                 NaN   \n",
       "5                           NaN                 NaN                 NaN   \n",
       "6                           NaN                 NaN                 NaN   \n",
       "7                           NaN                 NaN                 NaN   \n",
       "8                           NaN                 NaN                 NaN   \n",
       "9                           NaN                 NaN                 NaN   \n",
       "10                          NaN                 NaN                 NaN   \n",
       "11                          NaN                 NaN                 NaN   \n",
       "12                          NaN                 NaN                 NaN   \n",
       "13                          NaN                 NaN                 NaN   \n",
       "14                          NaN                 NaN                 NaN   \n",
       "15                          NaN                 NaN                 NaN   \n",
       "16                          NaN                 NaN                 NaN   \n",
       "17                          NaN                 NaN                 NaN   \n",
       "18                          NaN                 NaN                 NaN   \n",
       "19                          NaN                 NaN                 NaN   \n",
       "20                          NaN                 NaN                 NaN   \n",
       "21                          NaN                 NaN                 NaN   \n",
       "22                          NaN                 NaN                 NaN   \n",
       "23                          NaN                 NaN                 NaN   \n",
       "24                          NaN                 NaN                 NaN   \n",
       "...                         ...                 ...                 ...   \n",
       "17469                    0.0000              0.0000    reg oper account   \n",
       "17470                       NaN                 NaN                 NaN   \n",
       "17471                       NaN                 NaN                 NaN   \n",
       "17472                    0.0194              0.0624    reg oper account   \n",
       "17473                    0.0194              0.0624    reg oper account   \n",
       "17474                       NaN                 NaN                 NaN   \n",
       "17475                       NaN                 NaN                 NaN   \n",
       "17476                       NaN                 NaN                 NaN   \n",
       "17477                       NaN                 NaN                 NaN   \n",
       "17478                       NaN              1.0000                 NaN   \n",
       "17479                       NaN              1.0000                 NaN   \n",
       "17480                    0.0078              0.0167    reg oper account   \n",
       "17481                    0.0078              0.0167    reg oper account   \n",
       "17482                    0.0194              0.0474    reg oper account   \n",
       "17483                    0.0194              0.0474    reg oper account   \n",
       "17484                       NaN                 NaN                 NaN   \n",
       "17485                       NaN                 NaN                 NaN   \n",
       "17486                    0.0155              0.0231    reg oper account   \n",
       "17487                    0.0155              0.0231    reg oper account   \n",
       "17488                    0.0000              0.0000    reg oper account   \n",
       "17489                    0.0000              0.0000    reg oper account   \n",
       "17490                       NaN                 NaN                 NaN   \n",
       "17491                       NaN                 NaN                 NaN   \n",
       "17492                    0.0039              0.0051       not specified   \n",
       "17493                    0.0039              0.0051       not specified   \n",
       "\n",
       "       HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "0      block of flats          0.2230               Panel   \n",
       "1      block of flats          0.2131               Panel   \n",
       "2                 NaN             NaN                 NaN   \n",
       "3                 NaN             NaN                 NaN   \n",
       "4                 NaN             NaN                 NaN   \n",
       "5                 NaN             NaN                 NaN   \n",
       "6                 NaN             NaN                 NaN   \n",
       "7                 NaN             NaN                 NaN   \n",
       "8                 NaN             NaN                 NaN   \n",
       "9                 NaN             NaN                 NaN   \n",
       "10                NaN             NaN                 NaN   \n",
       "11                NaN             NaN                 NaN   \n",
       "12                NaN             NaN                 NaN   \n",
       "13                NaN             NaN                 NaN   \n",
       "14                NaN             NaN                 NaN   \n",
       "15                NaN             NaN                 NaN   \n",
       "16                NaN             NaN                 NaN   \n",
       "17                NaN             NaN                 NaN   \n",
       "18                NaN             NaN                 NaN   \n",
       "19                NaN             NaN                 NaN   \n",
       "20                NaN             NaN                 NaN   \n",
       "21                NaN             NaN                 NaN   \n",
       "22                NaN             NaN                 NaN   \n",
       "23                NaN             NaN                 NaN   \n",
       "24                NaN             NaN                 NaN   \n",
       "...               ...             ...                 ...   \n",
       "17469  block of flats          0.0648        Stone, brick   \n",
       "17470             NaN             NaN                 NaN   \n",
       "17471             NaN             NaN                 NaN   \n",
       "17472  block of flats          0.0521               Block   \n",
       "17473  block of flats          0.0521               Block   \n",
       "17474             NaN             NaN                 NaN   \n",
       "17475             NaN             NaN                 NaN   \n",
       "17476             NaN             NaN                 NaN   \n",
       "17477             NaN             NaN                 NaN   \n",
       "17478  block of flats          0.0589               Panel   \n",
       "17479  block of flats          0.0589               Panel   \n",
       "17480  block of flats          0.0260        Stone, brick   \n",
       "17481  block of flats          0.0260        Stone, brick   \n",
       "17482  block of flats          0.0397        Stone, brick   \n",
       "17483  block of flats          0.0397        Stone, brick   \n",
       "17484             NaN             NaN                 NaN   \n",
       "17485             NaN             NaN                 NaN   \n",
       "17486  block of flats          0.1849               Block   \n",
       "17487  block of flats          0.1849               Block   \n",
       "17488  block of flats          0.0673               Panel   \n",
       "17489  block of flats          0.0673               Panel   \n",
       "17490             NaN             NaN                 NaN   \n",
       "17491             NaN             NaN                 NaN   \n",
       "17492  block of flats          0.0272               Block   \n",
       "17493  block of flats          0.0272               Block   \n",
       "\n",
       "       EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  \\\n",
       "0                       No                       0.0   \n",
       "1                       No                       0.0   \n",
       "2                      NaN                       2.0   \n",
       "3                      NaN                       1.0   \n",
       "4                      NaN                       0.0   \n",
       "5                      NaN                       3.0   \n",
       "6                      NaN                       2.0   \n",
       "7                      NaN                       3.0   \n",
       "8                      NaN                       0.0   \n",
       "9                      NaN                       0.0   \n",
       "10                     NaN                       3.0   \n",
       "11                     NaN                       2.0   \n",
       "12                     NaN                       0.0   \n",
       "13                     NaN                       1.0   \n",
       "14                     NaN                       0.0   \n",
       "15                     NaN                       1.0   \n",
       "16                     NaN                       1.0   \n",
       "17                     NaN                       0.0   \n",
       "18                     NaN                       9.0   \n",
       "19                     NaN                       1.0   \n",
       "20                     NaN                       0.0   \n",
       "21                     NaN                       0.0   \n",
       "22                     NaN                       0.0   \n",
       "23                     NaN                       4.0   \n",
       "24                     NaN                       2.0   \n",
       "...                    ...                       ...   \n",
       "17469                   No                       3.0   \n",
       "17470                  NaN                       3.0   \n",
       "17471                  NaN                       0.0   \n",
       "17472                   No                       1.0   \n",
       "17473                   No                       0.0   \n",
       "17474                  NaN                       0.0   \n",
       "17475                  NaN                       3.0   \n",
       "17476                  NaN                       0.0   \n",
       "17477                  NaN                       0.0   \n",
       "17478                   No                       1.0   \n",
       "17479                   No                       1.0   \n",
       "17480                   No                       4.0   \n",
       "17481                   No                       4.0   \n",
       "17482                   No                       9.0   \n",
       "17483                   No                       9.0   \n",
       "17484                  NaN                       0.0   \n",
       "17485                  NaN                       0.0   \n",
       "17486                   No                       0.0   \n",
       "17487                   No                       2.0   \n",
       "17488                   No                       2.0   \n",
       "17489                   No                       2.0   \n",
       "17490                  NaN                       1.0   \n",
       "17491                  NaN                       1.0   \n",
       "17492                   No                       0.0   \n",
       "17493                   No                       0.0   \n",
       "\n",
       "       DEF_30_CNT_SOCIAL_CIRCLE  OBS_60_CNT_SOCIAL_CIRCLE  \\\n",
       "0                           0.0                       0.0   \n",
       "1                           0.0                       0.0   \n",
       "2                           1.0                       2.0   \n",
       "3                           0.0                       1.0   \n",
       "4                           0.0                       0.0   \n",
       "5                           0.0                       3.0   \n",
       "6                           0.0                       2.0   \n",
       "7                           1.0                       3.0   \n",
       "8                           0.0                       0.0   \n",
       "9                           0.0                       0.0   \n",
       "10                          0.0                       3.0   \n",
       "11                          0.0                       2.0   \n",
       "12                          0.0                       0.0   \n",
       "13                          0.0                       1.0   \n",
       "14                          0.0                       0.0   \n",
       "15                          0.0                       0.0   \n",
       "16                          0.0                       1.0   \n",
       "17                          0.0                       0.0   \n",
       "18                          0.0                       9.0   \n",
       "19                          0.0                       1.0   \n",
       "20                          0.0                       0.0   \n",
       "21                          0.0                       0.0   \n",
       "22                          0.0                       0.0   \n",
       "23                          0.0                       3.0   \n",
       "24                          0.0                       2.0   \n",
       "...                         ...                       ...   \n",
       "17469                       2.0                       3.0   \n",
       "17470                       1.0                       3.0   \n",
       "17471                       0.0                       0.0   \n",
       "17472                       0.0                       1.0   \n",
       "17473                       0.0                       0.0   \n",
       "17474                       0.0                       0.0   \n",
       "17475                       0.0                       3.0   \n",
       "17476                       0.0                       0.0   \n",
       "17477                       0.0                       0.0   \n",
       "17478                       0.0                       1.0   \n",
       "17479                       0.0                       1.0   \n",
       "17480                       0.0                       4.0   \n",
       "17481                       0.0                       4.0   \n",
       "17482                       0.0                       9.0   \n",
       "17483                       0.0                       9.0   \n",
       "17484                       0.0                       0.0   \n",
       "17485                       0.0                       0.0   \n",
       "17486                       0.0                       0.0   \n",
       "17487                       0.0                       2.0   \n",
       "17488                       0.0                       2.0   \n",
       "17489                       0.0                       2.0   \n",
       "17490                       0.0                       1.0   \n",
       "17491                       0.0                       1.0   \n",
       "17492                       0.0                       0.0   \n",
       "17493                       0.0                       0.0   \n",
       "\n",
       "       DEF_60_CNT_SOCIAL_CIRCLE  DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  \\\n",
       "0                           0.0                  -975.0                0   \n",
       "1                           0.0                 -1080.0                0   \n",
       "2                           1.0                 -1012.0                0   \n",
       "3                           0.0                 -1300.0                0   \n",
       "4                           0.0                 -1642.0                0   \n",
       "5                           0.0                 -1875.0                0   \n",
       "6                           0.0                 -1235.0                0   \n",
       "7                           1.0                 -1334.0                0   \n",
       "8                           0.0                 -1833.0                0   \n",
       "9                           0.0                 -1996.0                0   \n",
       "10                          0.0                  -419.0                0   \n",
       "11                          0.0                 -1252.0                0   \n",
       "12                          0.0                  -703.0                0   \n",
       "13                          0.0                 -1990.0                0   \n",
       "14                          0.0                 -1513.0                0   \n",
       "15                          0.0                     0.0                0   \n",
       "16                          0.0                   -87.0                0   \n",
       "17                          0.0                  -683.0                0   \n",
       "18                          0.0                 -1233.0                0   \n",
       "19                          0.0                 -1727.0                0   \n",
       "20                          0.0                  -445.0                0   \n",
       "21                          0.0                 -2559.0                0   \n",
       "22                          0.0                 -2459.0                0   \n",
       "23                          0.0                  -435.0                0   \n",
       "24                          0.0                   -44.0                0   \n",
       "...                         ...                     ...              ...   \n",
       "17469                       2.0                  -137.0                0   \n",
       "17470                       0.0                  -747.0                0   \n",
       "17471                       0.0                     0.0                0   \n",
       "17472                       0.0                 -1536.0                0   \n",
       "17473                       0.0                 -1560.0                0   \n",
       "17474                       0.0                  -734.0                0   \n",
       "17475                       0.0                  -964.0                0   \n",
       "17476                       0.0                  -426.0                0   \n",
       "17477                       0.0                  -426.0                0   \n",
       "17478                       0.0                 -1740.0                0   \n",
       "17479                       0.0                 -1922.0                0   \n",
       "17480                       0.0                 -1553.0                0   \n",
       "17481                       0.0                 -1746.0                0   \n",
       "17482                       0.0                 -2416.0                0   \n",
       "17483                       0.0                 -2508.0                0   \n",
       "17484                       0.0                 -2440.0                0   \n",
       "17485                       0.0                 -2562.0                0   \n",
       "17486                       0.0                 -1424.0                0   \n",
       "17487                       0.0                 -1707.0                0   \n",
       "17488                       0.0                  -499.0                0   \n",
       "17489                       0.0                  -671.0                0   \n",
       "17490                       0.0                  -550.0                0   \n",
       "17491                       0.0                  -637.0                0   \n",
       "17492                       0.0                  -611.0                0   \n",
       "17493                       0.0                  -753.0                0   \n",
       "\n",
       "       FLAG_DOCUMENT_3  FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  \\\n",
       "0                    0                0                0                1   \n",
       "1                    0                0                0                1   \n",
       "2                    0                0                0                1   \n",
       "3                    0                0                0                1   \n",
       "4                    0                0                0                0   \n",
       "5                    1                0                0                0   \n",
       "6                    0                0                0                1   \n",
       "7                    1                0                0                0   \n",
       "8                    0                0                0                1   \n",
       "9                    0                0                0                1   \n",
       "10                   0                0                0                1   \n",
       "11                   1                0                0                0   \n",
       "12                   1                0                0                0   \n",
       "13                   0                0                0                1   \n",
       "14                   0                0                0                1   \n",
       "15                   1                0                0                0   \n",
       "16                   1                0                0                0   \n",
       "17                   0                0                0                1   \n",
       "18                   0                0                0                1   \n",
       "19                   1                0                0                0   \n",
       "20                   1                0                0                0   \n",
       "21                   0                0                0                1   \n",
       "22                   1                0                0                0   \n",
       "23                   0                0                0                1   \n",
       "24                   0                0                0                0   \n",
       "...                ...              ...              ...              ...   \n",
       "17469                1                0                0                0   \n",
       "17470                0                0                0                1   \n",
       "17471                0                0                1                0   \n",
       "17472                1                0                0                0   \n",
       "17473                1                0                0                0   \n",
       "17474                1                0                0                0   \n",
       "17475                1                0                0                0   \n",
       "17476                1                0                0                0   \n",
       "17477                0                0                0                0   \n",
       "17478                1                0                0                0   \n",
       "17479                0                0                0                0   \n",
       "17480                1                0                0                0   \n",
       "17481                1                0                0                0   \n",
       "17482                1                0                0                0   \n",
       "17483                1                0                0                0   \n",
       "17484                0                0                0                1   \n",
       "17485                0                0                0                1   \n",
       "17486                1                0                0                0   \n",
       "17487                1                0                0                0   \n",
       "17488                1                0                0                0   \n",
       "17489                0                0                0                0   \n",
       "17490                1                0                0                0   \n",
       "17491                1                0                0                0   \n",
       "17492                0                0                0                0   \n",
       "17493                0                0                0                0   \n",
       "\n",
       "       FLAG_DOCUMENT_7  FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  \\\n",
       "0                    0                0                0                 0   \n",
       "1                    0                0                0                 0   \n",
       "2                    0                0                0                 0   \n",
       "3                    0                0                0                 0   \n",
       "4                    0                0                0                 0   \n",
       "5                    0                0                0                 0   \n",
       "6                    0                0                0                 0   \n",
       "7                    0                0                0                 0   \n",
       "8                    0                0                0                 0   \n",
       "9                    0                0                0                 0   \n",
       "10                   0                0                0                 0   \n",
       "11                   0                0                0                 0   \n",
       "12                   0                0                0                 0   \n",
       "13                   0                0                0                 0   \n",
       "14                   0                0                0                 0   \n",
       "15                   0                0                0                 0   \n",
       "16                   0                0                0                 0   \n",
       "17                   0                0                0                 0   \n",
       "18                   0                0                0                 0   \n",
       "19                   0                0                0                 0   \n",
       "20                   0                0                0                 0   \n",
       "21                   0                0                0                 0   \n",
       "22                   0                0                0                 0   \n",
       "23                   0                0                0                 0   \n",
       "24                   0                0                0                 0   \n",
       "...                ...              ...              ...               ...   \n",
       "17469                0                0                0                 0   \n",
       "17470                0                0                0                 0   \n",
       "17471                0                0                0                 0   \n",
       "17472                0                0                0                 0   \n",
       "17473                0                0                0                 0   \n",
       "17474                0                0                0                 0   \n",
       "17475                0                0                0                 0   \n",
       "17476                0                0                0                 0   \n",
       "17477                0                0                0                 0   \n",
       "17478                0                0                0                 0   \n",
       "17479                0                0                0                 0   \n",
       "17480                0                0                0                 0   \n",
       "17481                0                0                0                 0   \n",
       "17482                0                0                0                 0   \n",
       "17483                0                0                0                 0   \n",
       "17484                0                0                0                 0   \n",
       "17485                0                0                0                 0   \n",
       "17486                0                0                0                 0   \n",
       "17487                0                0                0                 0   \n",
       "17488                0                0                0                 0   \n",
       "17489                0                0                0                 0   \n",
       "17490                0                0                0                 0   \n",
       "17491                0                0                0                 0   \n",
       "17492                0                1                0                 0   \n",
       "17493                0                1                0                 0   \n",
       "\n",
       "       FLAG_DOCUMENT_11  FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  \\\n",
       "0                     0                 0                 0                 0   \n",
       "1                     0                 0                 0                 0   \n",
       "2                     0                 0                 0                 0   \n",
       "3                     0                 0                 0                 0   \n",
       "4                     0                 0                 0                 0   \n",
       "5                     0                 0                 0                 0   \n",
       "6                     0                 0                 0                 0   \n",
       "7                     0                 0                 0                 0   \n",
       "8                     0                 0                 0                 0   \n",
       "9                     0                 0                 0                 0   \n",
       "10                    0                 0                 0                 0   \n",
       "11                    0                 0                 0                 0   \n",
       "12                    0                 0                 0                 0   \n",
       "13                    0                 0                 0                 0   \n",
       "14                    0                 0                 0                 0   \n",
       "15                    0                 0                 0                 0   \n",
       "16                    0                 0                 0                 0   \n",
       "17                    0                 0                 0                 0   \n",
       "18                    0                 0                 0                 0   \n",
       "19                    0                 0                 0                 0   \n",
       "20                    0                 0                 0                 0   \n",
       "21                    0                 0                 0                 0   \n",
       "22                    0                 0                 0                 0   \n",
       "23                    0                 0                 0                 0   \n",
       "24                    0                 0                 0                 0   \n",
       "...                 ...               ...               ...               ...   \n",
       "17469                 0                 0                 0                 0   \n",
       "17470                 0                 0                 0                 0   \n",
       "17471                 0                 0                 0                 0   \n",
       "17472                 0                 0                 0                 0   \n",
       "17473                 0                 0                 0                 0   \n",
       "17474                 0                 0                 0                 0   \n",
       "17475                 0                 0                 0                 0   \n",
       "17476                 0                 0                 0                 0   \n",
       "17477                 0                 0                 0                 0   \n",
       "17478                 0                 0                 0                 0   \n",
       "17479                 0                 0                 0                 0   \n",
       "17480                 0                 0                 0                 0   \n",
       "17481                 0                 0                 0                 0   \n",
       "17482                 0                 0                 0                 0   \n",
       "17483                 0                 0                 0                 0   \n",
       "17484                 0                 0                 0                 0   \n",
       "17485                 0                 0                 0                 0   \n",
       "17486                 0                 0                 0                 0   \n",
       "17487                 0                 0                 0                 0   \n",
       "17488                 0                 0                 0                 0   \n",
       "17489                 0                 0                 0                 0   \n",
       "17490                 0                 0                 0                 0   \n",
       "17491                 0                 0                 0                 0   \n",
       "17492                 0                 0                 0                 0   \n",
       "17493                 0                 0                 0                 0   \n",
       "\n",
       "       FLAG_DOCUMENT_15  FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18  \\\n",
       "0                     0                 0                 0                 0   \n",
       "1                     0                 0                 0                 0   \n",
       "2                     0                 0                 0                 0   \n",
       "3                     0                 0                 0                 0   \n",
       "4                     0                 0                 0                 0   \n",
       "5                     0                 0                 0                 0   \n",
       "6                     0                 0                 0                 0   \n",
       "7                     0                 0                 0                 0   \n",
       "8                     0                 0                 0                 0   \n",
       "9                     0                 0                 0                 0   \n",
       "10                    0                 0                 0                 0   \n",
       "11                    0                 0                 0                 0   \n",
       "12                    0                 0                 0                 0   \n",
       "13                    0                 0                 0                 0   \n",
       "14                    0                 0                 0                 0   \n",
       "15                    0                 0                 0                 0   \n",
       "16                    0                 0                 0                 0   \n",
       "17                    0                 0                 0                 0   \n",
       "18                    0                 0                 0                 0   \n",
       "19                    0                 0                 0                 0   \n",
       "20                    0                 0                 0                 0   \n",
       "21                    0                 0                 0                 0   \n",
       "22                    0                 0                 0                 0   \n",
       "23                    0                 0                 0                 0   \n",
       "24                    0                 0                 0                 0   \n",
       "...                 ...               ...               ...               ...   \n",
       "17469                 0                 0                 0                 0   \n",
       "17470                 0                 0                 0                 0   \n",
       "17471                 0                 0                 0                 0   \n",
       "17472                 0                 0                 0                 0   \n",
       "17473                 0                 0                 0                 0   \n",
       "17474                 0                 0                 0                 0   \n",
       "17475                 0                 0                 0                 0   \n",
       "17476                 0                 0                 0                 0   \n",
       "17477                 0                 0                 0                 0   \n",
       "17478                 0                 0                 0                 0   \n",
       "17479                 0                 0                 0                 0   \n",
       "17480                 0                 0                 0                 0   \n",
       "17481                 0                 0                 0                 0   \n",
       "17482                 0                 0                 0                 0   \n",
       "17483                 0                 0                 0                 0   \n",
       "17484                 0                 0                 0                 0   \n",
       "17485                 0                 0                 0                 0   \n",
       "17486                 0                 0                 0                 0   \n",
       "17487                 0                 0                 0                 0   \n",
       "17488                 0                 0                 0                 0   \n",
       "17489                 0                 0                 0                 0   \n",
       "17490                 0                 0                 0                 0   \n",
       "17491                 0                 0                 0                 0   \n",
       "17492                 0                 0                 0                 0   \n",
       "17493                 0                 0                 0                 0   \n",
       "\n",
       "      FLAG_DOCUMENT_19 FLAG_DOCUMENT_20  FLAG_DOCUMENT_21  \\\n",
       "0                    0                0                 0   \n",
       "1                    0                0                 0   \n",
       "2                    0                0                 0   \n",
       "3                    0                0                 0   \n",
       "4                    0                0                 0   \n",
       "5                    0                0                 0   \n",
       "6                    0                0                 0   \n",
       "7                    0                0                 0   \n",
       "8                    0                0                 0   \n",
       "9                    0                0                 0   \n",
       "10                   0                0                 0   \n",
       "11                   0                0                 0   \n",
       "12                   0                0                 0   \n",
       "13                   0                0                 0   \n",
       "14                   0                0                 0   \n",
       "15                   0                0                 0   \n",
       "16                   0                0                 0   \n",
       "17                   0                0                 0   \n",
       "18                   0                0                 0   \n",
       "19                   0                0                 0   \n",
       "20                   0                0                 0   \n",
       "21                   0                0                 0   \n",
       "22                   0                0                 0   \n",
       "23                   0                0                 0   \n",
       "24                   0                0                 0   \n",
       "...                ...              ...               ...   \n",
       "17469                0                0                 0   \n",
       "17470                0                0                 0   \n",
       "17471                0                0                 0   \n",
       "17472                0                0                 0   \n",
       "17473                0                0                 0   \n",
       "17474                0                0                 0   \n",
       "17475                0                0                 0   \n",
       "17476                0                0                 0   \n",
       "17477                0                0                 0   \n",
       "17478                0                0                 0   \n",
       "17479                0                0                 0   \n",
       "17480                0                0                 0   \n",
       "17481                0                0                 0   \n",
       "17482                0                0                 0   \n",
       "17483                0                0                 0   \n",
       "17484                0                0                 0   \n",
       "17485                0                0                 0   \n",
       "17486                0                0                 0   \n",
       "17487                0                0                 0   \n",
       "17488                0                0                 0   \n",
       "17489                0                0                 0   \n",
       "17490                0                0                 0   \n",
       "17491                0                0                 0   \n",
       "17492                0                0                 0   \n",
       "17493                0                0                 0   \n",
       "\n",
       "      AMT_REQ_CREDIT_BUREAU_HOUR AMT_REQ_CREDIT_BUREAU_DAY  \\\n",
       "0                            0.0                       0.0   \n",
       "1                            0.0                       0.0   \n",
       "2                            0.0                       0.0   \n",
       "3                            0.0                       0.0   \n",
       "4                            0.0                       0.0   \n",
       "5                            0.0                       0.0   \n",
       "6                            0.0                       0.0   \n",
       "7                            0.0                       0.0   \n",
       "8                            0.0                       0.0   \n",
       "9                            0.0                       0.0   \n",
       "10                           0.0                       0.0   \n",
       "11                           0.0                       0.0   \n",
       "12                           0.0                       0.0   \n",
       "13                           0.0                       0.0   \n",
       "14                           0.0                       0.0   \n",
       "15                           0.0                       0.0   \n",
       "16                           0.0                       0.0   \n",
       "17                           0.0                       0.0   \n",
       "18                           0.0                       0.0   \n",
       "19                           0.0                       0.0   \n",
       "20                           0.0                       0.0   \n",
       "21                           0.0                       0.0   \n",
       "22                           0.0                       0.0   \n",
       "23                           0.0                       0.0   \n",
       "24                           0.0                       0.0   \n",
       "...                          ...                       ...   \n",
       "17469                        0.0                       0.0   \n",
       "17470                        0.0                       0.0   \n",
       "17471                        0.0                       0.0   \n",
       "17472                        0.0                       0.0   \n",
       "17473                        0.0                       0.0   \n",
       "17474                        0.0                       0.0   \n",
       "17475                        0.0                       0.0   \n",
       "17476                        0.0                       0.0   \n",
       "17477                        0.0                       0.0   \n",
       "17478                        0.0                       0.0   \n",
       "17479                        0.0                       0.0   \n",
       "17480                        0.0                       0.0   \n",
       "17481                        0.0                       0.0   \n",
       "17482                        0.0                       0.0   \n",
       "17483                        0.0                       0.0   \n",
       "17484                        0.0                       0.0   \n",
       "17485                        0.0                       0.0   \n",
       "17486                        0.0                       0.0   \n",
       "17487                        NaN                       NaN   \n",
       "17488                        0.0                       0.0   \n",
       "17489                        0.0                       0.0   \n",
       "17490                        0.0                       0.0   \n",
       "17491                        0.0                       0.0   \n",
       "17492                        0.0                       0.0   \n",
       "17493                        0.0                       0.0   \n",
       "\n",
       "       AMT_REQ_CREDIT_BUREAU_WEEK  AMT_REQ_CREDIT_BUREAU_MON  \\\n",
       "0                             0.0                        0.0   \n",
       "1                             0.0                        0.0   \n",
       "2                             0.0                        0.0   \n",
       "3                             0.0                        0.0   \n",
       "4                             0.0                        0.0   \n",
       "5                             0.0                        0.0   \n",
       "6                             0.0                        0.0   \n",
       "7                             0.0                        0.0   \n",
       "8                             0.0                        0.0   \n",
       "9                             0.0                        0.0   \n",
       "10                            0.0                        1.0   \n",
       "11                            0.0                        1.0   \n",
       "12                            0.0                        0.0   \n",
       "13                            0.0                        0.0   \n",
       "14                            0.0                        0.0   \n",
       "15                            0.0                        0.0   \n",
       "16                            0.0                        0.0   \n",
       "17                            0.0                        0.0   \n",
       "18                            0.0                        0.0   \n",
       "19                            0.0                        1.0   \n",
       "20                            0.0                        1.0   \n",
       "21                            0.0                        0.0   \n",
       "22                            0.0                        0.0   \n",
       "23                            0.0                        0.0   \n",
       "24                            0.0                        0.0   \n",
       "...                           ...                        ...   \n",
       "17469                         0.0                        0.0   \n",
       "17470                         0.0                        0.0   \n",
       "17471                         0.0                        0.0   \n",
       "17472                         0.0                        0.0   \n",
       "17473                         0.0                        0.0   \n",
       "17474                         0.0                        0.0   \n",
       "17475                         0.0                        0.0   \n",
       "17476                         0.0                        0.0   \n",
       "17477                         0.0                        0.0   \n",
       "17478                         0.0                        0.0   \n",
       "17479                         0.0                        0.0   \n",
       "17480                         0.0                        0.0   \n",
       "17481                         0.0                        0.0   \n",
       "17482                         0.0                        0.0   \n",
       "17483                         0.0                        0.0   \n",
       "17484                         0.0                        0.0   \n",
       "17485                         0.0                        0.0   \n",
       "17486                         0.0                        0.0   \n",
       "17487                         NaN                        NaN   \n",
       "17488                         0.0                        0.0   \n",
       "17489                         0.0                        0.0   \n",
       "17490                         0.0                        2.0   \n",
       "17491                         0.0                        0.0   \n",
       "17492                         0.0                        0.0   \n",
       "17493                         0.0                        0.0   \n",
       "\n",
       "       AMT_REQ_CREDIT_BUREAU_QRT  AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "0                            1.0                         5.0         1    0  \n",
       "1                            1.0                         8.0         1    1  \n",
       "2                            2.0                         3.0         1    0  \n",
       "3                            0.0                         4.0         0    1  \n",
       "4                            0.0                         0.0         1    0  \n",
       "5                            0.0                         0.0         0    1  \n",
       "6                            0.0                         0.0         1    0  \n",
       "7                            0.0                         1.0         0    1  \n",
       "8                            0.0                         2.0         1    0  \n",
       "9                            0.0                         4.0         1    1  \n",
       "10                           0.0                         1.0         1    0  \n",
       "11                           0.0                         9.0         0    1  \n",
       "12                           1.0                         3.0         1    0  \n",
       "13                           0.0                         3.0         0    1  \n",
       "14                           0.0                         5.0         1    2  \n",
       "15                           0.0                         5.0         1    0  \n",
       "16                           2.0                         4.0         1    1  \n",
       "17                           0.0                         3.0         0    0  \n",
       "18                           0.0                         4.0         1    1  \n",
       "19                           0.0                         3.0         1    0  \n",
       "20                           1.0                         6.0         1    1  \n",
       "21                           0.0                         5.0         0    2  \n",
       "22                           1.0                         3.0         1    0  \n",
       "23                           0.0                         3.0         1    1  \n",
       "24                           0.0                         3.0         1    0  \n",
       "...                          ...                         ...       ...  ...  \n",
       "17469                        0.0                         4.0         0    2  \n",
       "17470                        0.0                         2.0         1    0  \n",
       "17471                        1.0                         3.0         0    1  \n",
       "17472                        0.0                         3.0         1    0  \n",
       "17473                        0.0                         3.0         1    1  \n",
       "17474                        0.0                         1.0         1    0  \n",
       "17475                        1.0                         3.0         0    1  \n",
       "17476                        0.0                         3.0         1    0  \n",
       "17477                        0.0                         3.0         1    1  \n",
       "17478                        0.0                         1.0         1    0  \n",
       "17479                        0.0                         4.0         1    1  \n",
       "17480                        0.0                         4.0         1    0  \n",
       "17481                        0.0                         6.0         1    1  \n",
       "17482                        3.0                         5.0         1    0  \n",
       "17483                        4.0                         8.0         1    1  \n",
       "17484                        0.0                         1.0         1    0  \n",
       "17485                        0.0                         3.0         1    1  \n",
       "17486                        0.0                         3.0         1    0  \n",
       "17487                        NaN                         NaN         0    1  \n",
       "17488                        1.0                         2.0         1    0  \n",
       "17489                        0.0                         3.0         0    1  \n",
       "17490                        0.0                         1.0         1    0  \n",
       "17491                        2.0                         1.0         1    1  \n",
       "17492                        0.0                         1.0         1    0  \n",
       "17493                        0.0                         3.0         1    1  \n",
       "\n",
       "[17494 rows x 125 columns]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup = user_id[user_id.duplicated('user_id', False)]\n",
    "cnt = dup.groupby('user_id').size()\n",
    "cnt.name = 'dup_cnt'\n",
    "cnt = cnt.reset_index()\n",
    "cnt['dup_id'] = range(cnt.shape[0])\n",
    "\n",
    "dup = pd.merge(dup, cnt, on='user_id', how='left')\n",
    "dup = pd.merge(dup, trte, on='SK_ID_CURR', how='left')\n",
    "dup.sort_values(['user_id', 'DAYS_BIRTH'], ascending=[True, False], inplace=True)\n",
    "\n",
    "dup['seq'] = 1\n",
    "dup['seq'] = dup.groupby('user_id').seq.cumsum()-1\n",
    "\n",
    "col = train.columns.tolist() + [c for c in dup.columns if c not in train.columns]\n",
    "for c in ['dup_id', 'dup_cnt', 'user_id']:\n",
    "    col.remove(c)\n",
    "col = ['user_id'] + col\n",
    "\n",
    "dup = dup[col].reset_index(drop=True)\n",
    "dup"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.271603Z",
     "start_time": "2018-08-28T21:16:44.208899Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>665</th>\n",
       "      <td>3138.0</td>\n",
       "      <td>157771</td>\n",
       "      <td>0.0</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>180000.0</td>\n",
       "      <td>297000.0</td>\n",
       "      <td>9396.0</td>\n",
       "      <td>297000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>State servant</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.04622</td>\n",
       "      <td>-12435</td>\n",
       "      <td>-704</td>\n",
       "      <td>-1377.0</td>\n",
       "      <td>-2862</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>Core staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>School</td>\n",
       "      <td>0.41129</td>\n",
       "      <td>0.687431</td>\n",
       "      <td>0.171468</td>\n",
       "      <td>0.1031</td>\n",
       "      <td>0.1115</td>\n",
       "      <td>0.9786</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.2069</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0702</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-520.0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER FLAG_OWN_CAR  \\\n",
       "665   3138.0      157771     0.0         Cash loans           F            N   \n",
       "\n",
       "    FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  AMT_CREDIT  AMT_ANNUITY  \\\n",
       "665               Y             0          180000.0    297000.0       9396.0   \n",
       "\n",
       "     AMT_GOODS_PRICE NAME_TYPE_SUITE NAME_INCOME_TYPE NAME_EDUCATION_TYPE  \\\n",
       "665         297000.0   Unaccompanied    State servant    Higher education   \n",
       "\n",
       "    NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "665            Married  House / apartment                     0.04622   \n",
       "\n",
       "     DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "665      -12435           -704            -1377.0            -2862   \n",
       "\n",
       "     OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "665          NaN           1               1                1   \n",
       "\n",
       "     FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL OCCUPATION_TYPE  \\\n",
       "665                 1           1           0      Core staff   \n",
       "\n",
       "     CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "665              2.0                     1                            1   \n",
       "\n",
       "    WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "665                  WEDNESDAY                       16   \n",
       "\n",
       "     REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "665                           0                           0   \n",
       "\n",
       "     LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "665                            0                       0   \n",
       "\n",
       "     REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY ORGANIZATION_TYPE  \\\n",
       "665                       0                        0            School   \n",
       "\n",
       "     EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  APARTMENTS_AVG  \\\n",
       "665       0.41129      0.687431      0.171468          0.1031   \n",
       "\n",
       "     BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  YEARS_BUILD_AVG ...   \\\n",
       "665            0.1115                       0.9786              NaN ...    \n",
       "\n",
       "     YEARS_BUILD_MEDI  COMMONAREA_MEDI  ELEVATORS_MEDI  ENTRANCES_MEDI  \\\n",
       "665               NaN              NaN             0.0          0.2069   \n",
       "\n",
       "     FLOORSMAX_MEDI  FLOORSMIN_MEDI  LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  \\\n",
       "665          0.1667             NaN            NaN                    NaN   \n",
       "\n",
       "     LIVINGAREA_MEDI  NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  \\\n",
       "665              NaN                       NaN                 NaN   \n",
       "\n",
       "     FONDKAPREMONT_MODE  HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "665                 NaN  block of flats          0.0702        Stone, brick   \n",
       "\n",
       "     EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  DEF_30_CNT_SOCIAL_CIRCLE  \\\n",
       "665                   No                       0.0                       0.0   \n",
       "\n",
       "     OBS_60_CNT_SOCIAL_CIRCLE  DEF_60_CNT_SOCIAL_CIRCLE  \\\n",
       "665                       0.0                       0.0   \n",
       "\n",
       "     DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  FLAG_DOCUMENT_3  \\\n",
       "665                  -520.0                0                0   \n",
       "\n",
       "     FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  FLAG_DOCUMENT_7  \\\n",
       "665                0                0                0                0   \n",
       "\n",
       "     FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  FLAG_DOCUMENT_11  \\\n",
       "665                0                0                 0                 0   \n",
       "\n",
       "     FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  FLAG_DOCUMENT_15  \\\n",
       "665                 0                 0                 0                 0   \n",
       "\n",
       "     FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18 FLAG_DOCUMENT_19  \\\n",
       "665                 0                 0                 0                0   \n",
       "\n",
       "    FLAG_DOCUMENT_20  FLAG_DOCUMENT_21 AMT_REQ_CREDIT_BUREAU_HOUR  \\\n",
       "665                0                 0                        0.0   \n",
       "\n",
       "    AMT_REQ_CREDIT_BUREAU_DAY  AMT_REQ_CREDIT_BUREAU_WEEK  \\\n",
       "665                       0.0                         0.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_MON  AMT_REQ_CREDIT_BUREAU_QRT  \\\n",
       "665                        0.0                        2.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "665                         3.0         1    0  \n",
       "\n",
       "[1 rows x 125 columns]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup[dup.SK_ID_CURR==157771]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.336698Z",
     "start_time": "2018-08-28T21:16:44.273365Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>user_id</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>TARGET</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>CODE_GENDER</th>\n",
       "      <th>FLAG_OWN_CAR</th>\n",
       "      <th>FLAG_OWN_REALTY</th>\n",
       "      <th>CNT_CHILDREN</th>\n",
       "      <th>AMT_INCOME_TOTAL</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_INCOME_TYPE</th>\n",
       "      <th>NAME_EDUCATION_TYPE</th>\n",
       "      <th>NAME_FAMILY_STATUS</th>\n",
       "      <th>NAME_HOUSING_TYPE</th>\n",
       "      <th>REGION_POPULATION_RELATIVE</th>\n",
       "      <th>DAYS_BIRTH</th>\n",
       "      <th>DAYS_EMPLOYED</th>\n",
       "      <th>DAYS_REGISTRATION</th>\n",
       "      <th>DAYS_ID_PUBLISH</th>\n",
       "      <th>OWN_CAR_AGE</th>\n",
       "      <th>FLAG_MOBIL</th>\n",
       "      <th>FLAG_EMP_PHONE</th>\n",
       "      <th>FLAG_WORK_PHONE</th>\n",
       "      <th>FLAG_CONT_MOBILE</th>\n",
       "      <th>FLAG_PHONE</th>\n",
       "      <th>FLAG_EMAIL</th>\n",
       "      <th>OCCUPATION_TYPE</th>\n",
       "      <th>CNT_FAM_MEMBERS</th>\n",
       "      <th>REGION_RATING_CLIENT</th>\n",
       "      <th>REGION_RATING_CLIENT_W_CITY</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>REG_REGION_NOT_LIVE_REGION</th>\n",
       "      <th>REG_REGION_NOT_WORK_REGION</th>\n",
       "      <th>LIVE_REGION_NOT_WORK_REGION</th>\n",
       "      <th>REG_CITY_NOT_LIVE_CITY</th>\n",
       "      <th>REG_CITY_NOT_WORK_CITY</th>\n",
       "      <th>LIVE_CITY_NOT_WORK_CITY</th>\n",
       "      <th>ORGANIZATION_TYPE</th>\n",
       "      <th>EXT_SOURCE_1</th>\n",
       "      <th>EXT_SOURCE_2</th>\n",
       "      <th>EXT_SOURCE_3</th>\n",
       "      <th>APARTMENTS_AVG</th>\n",
       "      <th>BASEMENTAREA_AVG</th>\n",
       "      <th>YEARS_BEGINEXPLUATATION_AVG</th>\n",
       "      <th>YEARS_BUILD_AVG</th>\n",
       "      <th>...</th>\n",
       "      <th>YEARS_BUILD_MEDI</th>\n",
       "      <th>COMMONAREA_MEDI</th>\n",
       "      <th>ELEVATORS_MEDI</th>\n",
       "      <th>ENTRANCES_MEDI</th>\n",
       "      <th>FLOORSMAX_MEDI</th>\n",
       "      <th>FLOORSMIN_MEDI</th>\n",
       "      <th>LANDAREA_MEDI</th>\n",
       "      <th>LIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>LIVINGAREA_MEDI</th>\n",
       "      <th>NONLIVINGAPARTMENTS_MEDI</th>\n",
       "      <th>NONLIVINGAREA_MEDI</th>\n",
       "      <th>FONDKAPREMONT_MODE</th>\n",
       "      <th>HOUSETYPE_MODE</th>\n",
       "      <th>TOTALAREA_MODE</th>\n",
       "      <th>WALLSMATERIAL_MODE</th>\n",
       "      <th>EMERGENCYSTATE_MODE</th>\n",
       "      <th>OBS_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_30_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>OBS_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DEF_60_CNT_SOCIAL_CIRCLE</th>\n",
       "      <th>DAYS_LAST_PHONE_CHANGE</th>\n",
       "      <th>FLAG_DOCUMENT_2</th>\n",
       "      <th>FLAG_DOCUMENT_3</th>\n",
       "      <th>FLAG_DOCUMENT_4</th>\n",
       "      <th>FLAG_DOCUMENT_5</th>\n",
       "      <th>FLAG_DOCUMENT_6</th>\n",
       "      <th>FLAG_DOCUMENT_7</th>\n",
       "      <th>FLAG_DOCUMENT_8</th>\n",
       "      <th>FLAG_DOCUMENT_9</th>\n",
       "      <th>FLAG_DOCUMENT_10</th>\n",
       "      <th>FLAG_DOCUMENT_11</th>\n",
       "      <th>FLAG_DOCUMENT_12</th>\n",
       "      <th>FLAG_DOCUMENT_13</th>\n",
       "      <th>FLAG_DOCUMENT_14</th>\n",
       "      <th>FLAG_DOCUMENT_15</th>\n",
       "      <th>FLAG_DOCUMENT_16</th>\n",
       "      <th>FLAG_DOCUMENT_17</th>\n",
       "      <th>FLAG_DOCUMENT_18</th>\n",
       "      <th>FLAG_DOCUMENT_19</th>\n",
       "      <th>FLAG_DOCUMENT_20</th>\n",
       "      <th>FLAG_DOCUMENT_21</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_HOUR</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_DAY</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_WEEK</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_MON</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_QRT</th>\n",
       "      <th>AMT_REQ_CREDIT_BUREAU_YEAR</th>\n",
       "      <th>is_train</th>\n",
       "      <th>seq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>666</th>\n",
       "      <td>3138.0</td>\n",
       "      <td>100066</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>F</td>\n",
       "      <td>N</td>\n",
       "      <td>Y</td>\n",
       "      <td>0</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>364896.0</td>\n",
       "      <td>28957.5</td>\n",
       "      <td>315000.0</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>State servant</td>\n",
       "      <td>Higher education</td>\n",
       "      <td>Married</td>\n",
       "      <td>House / apartment</td>\n",
       "      <td>0.04622</td>\n",
       "      <td>-12744</td>\n",
       "      <td>-1013</td>\n",
       "      <td>-1686.0</td>\n",
       "      <td>-3171</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>Core staff</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>School</td>\n",
       "      <td>0.718507</td>\n",
       "      <td>0.808788</td>\n",
       "      <td>0.522697</td>\n",
       "      <td>0.1031</td>\n",
       "      <td>0.1115</td>\n",
       "      <td>0.9781</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.2069</td>\n",
       "      <td>0.1667</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>block of flats</td>\n",
       "      <td>0.0702</td>\n",
       "      <td>Stone, brick</td>\n",
       "      <td>No</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-829.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 125 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     user_id  SK_ID_CURR  TARGET NAME_CONTRACT_TYPE CODE_GENDER FLAG_OWN_CAR  \\\n",
       "666   3138.0      100066     NaN         Cash loans           F            N   \n",
       "\n",
       "    FLAG_OWN_REALTY  CNT_CHILDREN  AMT_INCOME_TOTAL  AMT_CREDIT  AMT_ANNUITY  \\\n",
       "666               Y             0          315000.0    364896.0      28957.5   \n",
       "\n",
       "     AMT_GOODS_PRICE NAME_TYPE_SUITE NAME_INCOME_TYPE NAME_EDUCATION_TYPE  \\\n",
       "666         315000.0   Unaccompanied    State servant    Higher education   \n",
       "\n",
       "    NAME_FAMILY_STATUS  NAME_HOUSING_TYPE  REGION_POPULATION_RELATIVE  \\\n",
       "666            Married  House / apartment                     0.04622   \n",
       "\n",
       "     DAYS_BIRTH  DAYS_EMPLOYED  DAYS_REGISTRATION  DAYS_ID_PUBLISH  \\\n",
       "666      -12744          -1013            -1686.0            -3171   \n",
       "\n",
       "     OWN_CAR_AGE  FLAG_MOBIL  FLAG_EMP_PHONE  FLAG_WORK_PHONE  \\\n",
       "666          NaN           1               1                0   \n",
       "\n",
       "     FLAG_CONT_MOBILE  FLAG_PHONE  FLAG_EMAIL OCCUPATION_TYPE  \\\n",
       "666                 1           0           0      Core staff   \n",
       "\n",
       "     CNT_FAM_MEMBERS  REGION_RATING_CLIENT  REGION_RATING_CLIENT_W_CITY  \\\n",
       "666              2.0                     1                            1   \n",
       "\n",
       "    WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "666                   THURSDAY                       18   \n",
       "\n",
       "     REG_REGION_NOT_LIVE_REGION  REG_REGION_NOT_WORK_REGION  \\\n",
       "666                           0                           0   \n",
       "\n",
       "     LIVE_REGION_NOT_WORK_REGION  REG_CITY_NOT_LIVE_CITY  \\\n",
       "666                            0                       0   \n",
       "\n",
       "     REG_CITY_NOT_WORK_CITY  LIVE_CITY_NOT_WORK_CITY ORGANIZATION_TYPE  \\\n",
       "666                       0                        0            School   \n",
       "\n",
       "     EXT_SOURCE_1  EXT_SOURCE_2  EXT_SOURCE_3  APARTMENTS_AVG  \\\n",
       "666      0.718507      0.808788      0.522697          0.1031   \n",
       "\n",
       "     BASEMENTAREA_AVG  YEARS_BEGINEXPLUATATION_AVG  YEARS_BUILD_AVG ...   \\\n",
       "666            0.1115                       0.9781              NaN ...    \n",
       "\n",
       "     YEARS_BUILD_MEDI  COMMONAREA_MEDI  ELEVATORS_MEDI  ENTRANCES_MEDI  \\\n",
       "666               NaN              NaN             0.0          0.2069   \n",
       "\n",
       "     FLOORSMAX_MEDI  FLOORSMIN_MEDI  LANDAREA_MEDI  LIVINGAPARTMENTS_MEDI  \\\n",
       "666          0.1667             NaN            NaN                    NaN   \n",
       "\n",
       "     LIVINGAREA_MEDI  NONLIVINGAPARTMENTS_MEDI  NONLIVINGAREA_MEDI  \\\n",
       "666              NaN                       NaN                 NaN   \n",
       "\n",
       "     FONDKAPREMONT_MODE  HOUSETYPE_MODE  TOTALAREA_MODE  WALLSMATERIAL_MODE  \\\n",
       "666                 NaN  block of flats          0.0702        Stone, brick   \n",
       "\n",
       "     EMERGENCYSTATE_MODE  OBS_30_CNT_SOCIAL_CIRCLE  DEF_30_CNT_SOCIAL_CIRCLE  \\\n",
       "666                   No                       0.0                       0.0   \n",
       "\n",
       "     OBS_60_CNT_SOCIAL_CIRCLE  DEF_60_CNT_SOCIAL_CIRCLE  \\\n",
       "666                       0.0                       0.0   \n",
       "\n",
       "     DAYS_LAST_PHONE_CHANGE  FLAG_DOCUMENT_2  FLAG_DOCUMENT_3  \\\n",
       "666                  -829.0                0                1   \n",
       "\n",
       "     FLAG_DOCUMENT_4  FLAG_DOCUMENT_5  FLAG_DOCUMENT_6  FLAG_DOCUMENT_7  \\\n",
       "666                0                0                0                0   \n",
       "\n",
       "     FLAG_DOCUMENT_8  FLAG_DOCUMENT_9  FLAG_DOCUMENT_10  FLAG_DOCUMENT_11  \\\n",
       "666                0                0                 0                 0   \n",
       "\n",
       "     FLAG_DOCUMENT_12  FLAG_DOCUMENT_13  FLAG_DOCUMENT_14  FLAG_DOCUMENT_15  \\\n",
       "666                 0                 0                 0                 0   \n",
       "\n",
       "     FLAG_DOCUMENT_16  FLAG_DOCUMENT_17  FLAG_DOCUMENT_18 FLAG_DOCUMENT_19  \\\n",
       "666                 0                 0                 0                0   \n",
       "\n",
       "    FLAG_DOCUMENT_20  FLAG_DOCUMENT_21 AMT_REQ_CREDIT_BUREAU_HOUR  \\\n",
       "666                0                 0                        0.0   \n",
       "\n",
       "    AMT_REQ_CREDIT_BUREAU_DAY  AMT_REQ_CREDIT_BUREAU_WEEK  \\\n",
       "666                       0.0                         0.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_MON  AMT_REQ_CREDIT_BUREAU_QRT  \\\n",
       "666                        0.0                        0.0   \n",
       "\n",
       "     AMT_REQ_CREDIT_BUREAU_YEAR  is_train  seq  \n",
       "666                         5.0         0    1  \n",
       "\n",
       "[1 rows x 125 columns]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dup[dup.SK_ID_CURR==100066]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.374318Z",
     "start_time": "2018-08-28T21:16:44.338263Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>115456</th>\n",
       "      <td>1295424</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7589.925</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>76054.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-520</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>New</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>15</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-489.0</td>\n",
       "      <td>-159.0</td>\n",
       "      <td>-159.0</td>\n",
       "      <td>-157.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1265969</th>\n",
       "      <td>1354392</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>10729.440</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>110727.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-340</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>43</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>21.0</td>\n",
       "      <td>-9.0</td>\n",
       "      <td>-3.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1260816</th>\n",
       "      <td>2631328</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>12382.650</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>101839.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-141</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Computers</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-111.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>313895</th>\n",
       "      <td>2793303</td>\n",
       "      <td>157771</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>2250.000</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-141</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>542458</th>\n",
       "      <td>2664704</td>\n",
       "      <td>157771</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-15</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "115456      1295424      157771     Consumer loans     7589.925   \n",
       "1265969     1354392      157771     Consumer loans    10729.440   \n",
       "1260816     2631328      157771     Consumer loans    12382.650   \n",
       "313895      2793303      157771    Revolving loans     2250.000   \n",
       "542458      2664704      157771         Cash loans          NaN   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "115456           68791.5     76054.5               0.0          68791.5   \n",
       "1265969         100152.0    110727.0               0.0         100152.0   \n",
       "1260816          92110.5    101839.5               0.0          92110.5   \n",
       "313895           45000.0     45000.0               NaN          45000.0   \n",
       "542458               0.0         0.0               NaN              NaN   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "115456                      MONDAY                       15   \n",
       "1265969                   SATURDAY                       14   \n",
       "1260816                    TUESDAY                       13   \n",
       "313895                     TUESDAY                       13   \n",
       "542458                     TUESDAY                        9   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "115456                            Y                       1   \n",
       "1265969                           Y                       1   \n",
       "1260816                           Y                       1   \n",
       "313895                            Y                       1   \n",
       "542458                            Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "115456                 0.0                    NaN                       NaN   \n",
       "1265969                0.0                    NaN                       NaN   \n",
       "1260816                0.0                    NaN                       NaN   \n",
       "313895                 NaN                    NaN                       NaN   \n",
       "542458                 NaN                    NaN                       NaN   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "115456                     XAP             Approved           -520   \n",
       "1265969                    XAP             Approved           -340   \n",
       "1260816                    XAP             Approved           -141   \n",
       "313895                     XAP             Approved           -141   \n",
       "542458                     XNA             Canceled            -15   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "115456   Cash through the bank                XAP             NaN   \n",
       "1265969  Cash through the bank                XAP             NaN   \n",
       "1260816  Cash through the bank                XAP   Unaccompanied   \n",
       "313895                     XNA                XAP   Unaccompanied   \n",
       "542458                     XNA                XAP             NaN   \n",
       "\n",
       "        NAME_CLIENT_TYPE NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "115456               New              Mobile            POS               XNA   \n",
       "1265969         Repeater              Mobile            POS               XNA   \n",
       "1260816         Repeater           Computers            POS               XNA   \n",
       "313895          Repeater                 XNA          Cards           walk-in   \n",
       "542458          Repeater                 XNA            XNA               XNA   \n",
       "\n",
       "                    CHANNEL_TYPE  SELLERPLACE_AREA NAME_SELLER_INDUSTRY  \\\n",
       "115456              Country-wide                15         Connectivity   \n",
       "1265969             Country-wide                43         Connectivity   \n",
       "1260816             Country-wide                10         Connectivity   \n",
       "313895              Country-wide                10         Connectivity   \n",
       "542458   Credit and cash offices                -1                  XNA   \n",
       "\n",
       "         CNT_PAYMENT NAME_YIELD_GROUP          PRODUCT_COMBINATION  \\\n",
       "115456          12.0           middle  POS mobile without interest   \n",
       "1265969         12.0       low_normal  POS mobile without interest   \n",
       "1260816         12.0             high     POS mobile with interest   \n",
       "313895           0.0              XNA                  Card Street   \n",
       "542458           NaN              XNA                         Cash   \n",
       "\n",
       "         DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  DAYS_LAST_DUE_1ST_VERSION  \\\n",
       "115456             365243.0          -489.0                     -159.0   \n",
       "1265969            365243.0          -309.0                       21.0   \n",
       "1260816            365243.0          -111.0                      219.0   \n",
       "313895             365243.0        365243.0                   365243.0   \n",
       "542458                  NaN             NaN                        NaN   \n",
       "\n",
       "         DAYS_LAST_DUE  DAYS_TERMINATION  NFLAG_INSURED_ON_APPROVAL  \n",
       "115456          -159.0            -157.0                        0.0  \n",
       "1265969           -9.0              -3.0                        0.0  \n",
       "1260816       365243.0          365243.0                        1.0  \n",
       "313895        365243.0          365243.0                        0.0  \n",
       "542458             NaN               NaN                        NaN  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==157771]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.416485Z",
     "start_time": "2018-08-28T21:16:44.375954Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>499369</th>\n",
       "      <td>1008517</td>\n",
       "      <td>100066</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7589.925</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>76054.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-829</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>New</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>15</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-798.0</td>\n",
       "      <td>-468.0</td>\n",
       "      <td>-468.0</td>\n",
       "      <td>-466.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1643672</th>\n",
       "      <td>2551852</td>\n",
       "      <td>100066</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>10729.440</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>110727.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-649</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>43</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-618.0</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-318.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>692281</th>\n",
       "      <td>1852787</td>\n",
       "      <td>100066</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>2250.000</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-450</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>616339</th>\n",
       "      <td>1084766</td>\n",
       "      <td>100066</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>12382.650</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>101839.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-450</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Computers</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-420.0</td>\n",
       "      <td>-90.0</td>\n",
       "      <td>-90.0</td>\n",
       "      <td>-88.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>988234</th>\n",
       "      <td>2530269</td>\n",
       "      <td>100066</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-324</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1387179</th>\n",
       "      <td>2389193</td>\n",
       "      <td>100066</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-310</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>465133</th>\n",
       "      <td>2827980</td>\n",
       "      <td>100066</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-310</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>292816</th>\n",
       "      <td>2081566</td>\n",
       "      <td>100066</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>17244.765</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>545040.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Other</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-310</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>48.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash Street: low</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1122719</th>\n",
       "      <td>1941379</td>\n",
       "      <td>100066</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>9400.050</td>\n",
       "      <td>297000.0</td>\n",
       "      <td>297000.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>297000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Payments on other loans</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-309</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>45.0</td>\n",
       "      <td>low_action</td>\n",
       "      <td>Cash Street: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-279.0</td>\n",
       "      <td>1041.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "499369      1008517      100066     Consumer loans     7589.925   \n",
       "1643672     2551852      100066     Consumer loans    10729.440   \n",
       "692281      1852787      100066    Revolving loans     2250.000   \n",
       "616339      1084766      100066     Consumer loans    12382.650   \n",
       "988234      2530269      100066         Cash loans          NaN   \n",
       "1387179     2389193      100066         Cash loans          NaN   \n",
       "465133      2827980      100066         Cash loans          NaN   \n",
       "292816      2081566      100066         Cash loans    17244.765   \n",
       "1122719     1941379      100066         Cash loans     9400.050   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "499369           68791.5     76054.5               0.0          68791.5   \n",
       "1643672         100152.0    110727.0               0.0         100152.0   \n",
       "692281           45000.0     45000.0               NaN          45000.0   \n",
       "616339           92110.5    101839.5               0.0          92110.5   \n",
       "988234               0.0         0.0               NaN              NaN   \n",
       "1387179              0.0         0.0               NaN              NaN   \n",
       "465133               0.0         0.0               NaN              NaN   \n",
       "292816          450000.0    545040.0               NaN         450000.0   \n",
       "1122719         297000.0    297000.0               NaN         297000.0   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "499369                      MONDAY                       15   \n",
       "1643672                   SATURDAY                       14   \n",
       "692281                     TUESDAY                       13   \n",
       "616339                     TUESDAY                       13   \n",
       "988234                     TUESDAY                        9   \n",
       "1387179                    TUESDAY                       12   \n",
       "465133                     TUESDAY                       13   \n",
       "292816                     TUESDAY                       13   \n",
       "1122719                  WEDNESDAY                       16   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "499369                            Y                       1   \n",
       "1643672                           Y                       1   \n",
       "692281                            Y                       1   \n",
       "616339                            Y                       1   \n",
       "988234                            Y                       1   \n",
       "1387179                           Y                       1   \n",
       "465133                            Y                       1   \n",
       "292816                            Y                       1   \n",
       "1122719                           Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "499369                 0.0                    NaN                       NaN   \n",
       "1643672                0.0                    NaN                       NaN   \n",
       "692281                 NaN                    NaN                       NaN   \n",
       "616339                 0.0                    NaN                       NaN   \n",
       "988234                 NaN                    NaN                       NaN   \n",
       "1387179                NaN                    NaN                       NaN   \n",
       "465133                 NaN                    NaN                       NaN   \n",
       "292816                 NaN                    NaN                       NaN   \n",
       "1122719                NaN                    NaN                       NaN   \n",
       "\n",
       "          NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "499369                       XAP             Approved           -829   \n",
       "1643672                      XAP             Approved           -649   \n",
       "692281                       XAP             Approved           -450   \n",
       "616339                       XAP             Approved           -450   \n",
       "988234                       XNA             Canceled           -324   \n",
       "1387179                      XNA             Canceled           -310   \n",
       "465133                       XNA             Canceled           -310   \n",
       "292816                     Other              Refused           -310   \n",
       "1122719  Payments on other loans             Approved           -309   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "499369   Cash through the bank                XAP             NaN   \n",
       "1643672  Cash through the bank                XAP             NaN   \n",
       "692281                     XNA                XAP   Unaccompanied   \n",
       "616339   Cash through the bank                XAP   Unaccompanied   \n",
       "988234                     XNA                XAP             NaN   \n",
       "1387179                    XNA                XAP             NaN   \n",
       "465133                     XNA                XAP             NaN   \n",
       "292816   Cash through the bank                 HC   Unaccompanied   \n",
       "1122719  Cash through the bank                XAP   Unaccompanied   \n",
       "\n",
       "        NAME_CLIENT_TYPE NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "499369               New              Mobile            POS               XNA   \n",
       "1643672         Repeater              Mobile            POS               XNA   \n",
       "692281          Repeater                 XNA          Cards           walk-in   \n",
       "616339          Repeater           Computers            POS               XNA   \n",
       "988234          Repeater                 XNA            XNA               XNA   \n",
       "1387179         Repeater                 XNA            XNA               XNA   \n",
       "465133          Repeater                 XNA            XNA               XNA   \n",
       "292816          Repeater                 XNA           Cash           walk-in   \n",
       "1122719         Repeater                 XNA           Cash           walk-in   \n",
       "\n",
       "                    CHANNEL_TYPE  SELLERPLACE_AREA NAME_SELLER_INDUSTRY  \\\n",
       "499369              Country-wide                15         Connectivity   \n",
       "1643672             Country-wide                43         Connectivity   \n",
       "692281              Country-wide                10         Connectivity   \n",
       "616339              Country-wide                10         Connectivity   \n",
       "988234   Credit and cash offices                -1                  XNA   \n",
       "1387179  Credit and cash offices                -1                  XNA   \n",
       "465133   Credit and cash offices                -1                  XNA   \n",
       "292816   Credit and cash offices                -1                  XNA   \n",
       "1122719           Contact center                -1                  XNA   \n",
       "\n",
       "         CNT_PAYMENT NAME_YIELD_GROUP          PRODUCT_COMBINATION  \\\n",
       "499369          12.0           middle  POS mobile without interest   \n",
       "1643672         12.0       low_normal  POS mobile without interest   \n",
       "692281           0.0              XNA                  Card Street   \n",
       "616339          12.0             high     POS mobile with interest   \n",
       "988234           NaN              XNA                         Cash   \n",
       "1387179          NaN              XNA                         Cash   \n",
       "465133           NaN              XNA                         Cash   \n",
       "292816          48.0       low_normal             Cash Street: low   \n",
       "1122719         45.0       low_action             Cash Street: low   \n",
       "\n",
       "         DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  DAYS_LAST_DUE_1ST_VERSION  \\\n",
       "499369             365243.0          -798.0                     -468.0   \n",
       "1643672            365243.0          -618.0                     -288.0   \n",
       "692281             365243.0        365243.0                   365243.0   \n",
       "616339             365243.0          -420.0                      -90.0   \n",
       "988234                  NaN             NaN                        NaN   \n",
       "1387179                 NaN             NaN                        NaN   \n",
       "465133                  NaN             NaN                        NaN   \n",
       "292816                  NaN             NaN                        NaN   \n",
       "1122719            365243.0          -279.0                     1041.0   \n",
       "\n",
       "         DAYS_LAST_DUE  DAYS_TERMINATION  NFLAG_INSURED_ON_APPROVAL  \n",
       "499369          -468.0            -466.0                        0.0  \n",
       "1643672         -318.0            -312.0                        0.0  \n",
       "692281        365243.0          365243.0                        0.0  \n",
       "616339           -90.0             -88.0                        1.0  \n",
       "988234             NaN               NaN                        NaN  \n",
       "1387179            NaN               NaN                        NaN  \n",
       "465133             NaN               NaN                        NaN  \n",
       "292816             NaN               NaN                        NaN  \n",
       "1122719       365243.0          365243.0                        0.0  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==100066]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.873599Z",
     "start_time": "2018-08-28T21:16:44.418066Z"
    }
   },
   "outputs": [],
   "source": [
    "col_num = prev.select_dtypes(exclude='O').columns.tolist()\n",
    "col_cat = prev.select_dtypes('O').columns.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.879260Z",
     "start_time": "2018-08-28T21:16:44.875779Z"
    }
   },
   "outputs": [],
   "source": [
    "date_feature = ['DAYS_DECISION', 'DAYS_FIRST_DRAWING', 'DAYS_FIRST_DUE', 'DAYS_LAST_DUE_1ST_VERSION',\n",
    "               'DAYS_LAST_DUE', 'DAYS_TERMINATION']\n",
    "\n",
    "keys = ['NAME_CONTRACT_TYPE', 'AMT_ANNUITY', 'AMT_APPLICATION', 'AMT_CREDIT', \n",
    "        'AMT_DOWN_PAYMENT', 'AMT_GOODS_PRICE', 'WEEKDAY_APPR_PROCESS_START', \n",
    "        'HOUR_APPR_PROCESS_START', 'FLAG_LAST_APPL_PER_CONTRACT', 'NFLAG_LAST_APPL_IN_DAY',\n",
    "        'RATE_DOWN_PAYMENT', 'NAME_CONTRACT_STATUS', 'NAME_TYPE_SUITE', 'PRODUCT_COMBINATION']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:44.883557Z",
     "start_time": "2018-08-28T21:16:44.880965Z"
    }
   },
   "outputs": [],
   "source": [
    "for c in date_feature:\n",
    "    col_num.remove(c)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:47.981376Z",
     "start_time": "2018-08-28T21:16:44.885170Z"
    }
   },
   "outputs": [],
   "source": [
    "prev[col_num] = prev[col_num].fillna(-1) # awful \n",
    "prev[col_cat] = prev[col_cat].fillna('-NA-')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:48.023335Z",
     "start_time": "2018-08-28T21:16:47.983973Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>115456</th>\n",
       "      <td>1295424</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>7589.925</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>76054.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>68791.5</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-520</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>New</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>15</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-489.0</td>\n",
       "      <td>-159.0</td>\n",
       "      <td>-159.0</td>\n",
       "      <td>-157.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1265969</th>\n",
       "      <td>1354392</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>10729.440</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>110727.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100152.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-340</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>43</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS mobile without interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>21.0</td>\n",
       "      <td>-9.0</td>\n",
       "      <td>-3.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1260816</th>\n",
       "      <td>2631328</td>\n",
       "      <td>157771</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>12382.650</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>101839.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>92110.5</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-141</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Computers</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>12.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-111.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>313895</th>\n",
       "      <td>2793303</td>\n",
       "      <td>157771</td>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>2250.000</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>45000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-141</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>walk-in</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>10</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>542458</th>\n",
       "      <td>2664704</td>\n",
       "      <td>157771</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-15</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  \\\n",
       "115456      1295424      157771     Consumer loans     7589.925   \n",
       "1265969     1354392      157771     Consumer loans    10729.440   \n",
       "1260816     2631328      157771     Consumer loans    12382.650   \n",
       "313895      2793303      157771    Revolving loans     2250.000   \n",
       "542458      2664704      157771         Cash loans       -1.000   \n",
       "\n",
       "         AMT_APPLICATION  AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE  \\\n",
       "115456           68791.5     76054.5               0.0          68791.5   \n",
       "1265969         100152.0    110727.0               0.0         100152.0   \n",
       "1260816          92110.5    101839.5               0.0          92110.5   \n",
       "313895           45000.0     45000.0              -1.0          45000.0   \n",
       "542458               0.0         0.0              -1.0             -1.0   \n",
       "\n",
       "        WEEKDAY_APPR_PROCESS_START  HOUR_APPR_PROCESS_START  \\\n",
       "115456                      MONDAY                       15   \n",
       "1265969                   SATURDAY                       14   \n",
       "1260816                    TUESDAY                       13   \n",
       "313895                     TUESDAY                       13   \n",
       "542458                     TUESDAY                        9   \n",
       "\n",
       "        FLAG_LAST_APPL_PER_CONTRACT  NFLAG_LAST_APPL_IN_DAY  \\\n",
       "115456                            Y                       1   \n",
       "1265969                           Y                       1   \n",
       "1260816                           Y                       1   \n",
       "313895                            Y                       1   \n",
       "542458                            Y                       1   \n",
       "\n",
       "         RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED  \\\n",
       "115456                 0.0                   -1.0                      -1.0   \n",
       "1265969                0.0                   -1.0                      -1.0   \n",
       "1260816                0.0                   -1.0                      -1.0   \n",
       "313895                -1.0                   -1.0                      -1.0   \n",
       "542458                -1.0                   -1.0                      -1.0   \n",
       "\n",
       "        NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  DAYS_DECISION  \\\n",
       "115456                     XAP             Approved           -520   \n",
       "1265969                    XAP             Approved           -340   \n",
       "1260816                    XAP             Approved           -141   \n",
       "313895                     XAP             Approved           -141   \n",
       "542458                     XNA             Canceled            -15   \n",
       "\n",
       "             NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "115456   Cash through the bank                XAP            -NA-   \n",
       "1265969  Cash through the bank                XAP            -NA-   \n",
       "1260816  Cash through the bank                XAP   Unaccompanied   \n",
       "313895                     XNA                XAP   Unaccompanied   \n",
       "542458                     XNA                XAP            -NA-   \n",
       "\n",
       "        NAME_CLIENT_TYPE NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "115456               New              Mobile            POS               XNA   \n",
       "1265969         Repeater              Mobile            POS               XNA   \n",
       "1260816         Repeater           Computers            POS               XNA   \n",
       "313895          Repeater                 XNA          Cards           walk-in   \n",
       "542458          Repeater                 XNA            XNA               XNA   \n",
       "\n",
       "                    CHANNEL_TYPE  SELLERPLACE_AREA NAME_SELLER_INDUSTRY  \\\n",
       "115456              Country-wide                15         Connectivity   \n",
       "1265969             Country-wide                43         Connectivity   \n",
       "1260816             Country-wide                10         Connectivity   \n",
       "313895              Country-wide                10         Connectivity   \n",
       "542458   Credit and cash offices                -1                  XNA   \n",
       "\n",
       "         CNT_PAYMENT NAME_YIELD_GROUP          PRODUCT_COMBINATION  \\\n",
       "115456          12.0           middle  POS mobile without interest   \n",
       "1265969         12.0       low_normal  POS mobile without interest   \n",
       "1260816         12.0             high     POS mobile with interest   \n",
       "313895           0.0              XNA                  Card Street   \n",
       "542458          -1.0              XNA                         Cash   \n",
       "\n",
       "         DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  DAYS_LAST_DUE_1ST_VERSION  \\\n",
       "115456             365243.0          -489.0                     -159.0   \n",
       "1265969            365243.0          -309.0                       21.0   \n",
       "1260816            365243.0          -111.0                      219.0   \n",
       "313895             365243.0        365243.0                   365243.0   \n",
       "542458                  NaN             NaN                        NaN   \n",
       "\n",
       "         DAYS_LAST_DUE  DAYS_TERMINATION  NFLAG_INSURED_ON_APPROVAL  \n",
       "115456          -159.0            -157.0                        0.0  \n",
       "1265969           -9.0              -3.0                        0.0  \n",
       "1260816       365243.0          365243.0                        1.0  \n",
       "313895        365243.0          365243.0                        0.0  \n",
       "542458             NaN               NaN                       -1.0  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev[prev.SK_ID_CURR==157771]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Backwards"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:48.125772Z",
     "start_time": "2018-08-28T21:16:48.025019Z"
    }
   },
   "outputs": [],
   "source": [
    "def backwards(args):\n",
    "    start_ix, last_ix = args\n",
    "    li = []\n",
    "    curr_id_bk, seq_bk, day_bk = None, None, None\n",
    "    for i in range(start_ix, last_ix):\n",
    "        curr_id, seq, day = dup.iloc[i, 1], dup.iloc[i, -1], dup.iloc[i, 18] \n",
    "        if seq ==0:\n",
    "            curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "            continue\n",
    "        else:\n",
    "            day_diff = day - day_bk\n",
    "            \n",
    "            if day_diff==0:\n",
    "                curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "                continue\n",
    "            \n",
    "            prev_bk = prev[prev.SK_ID_CURR==curr_id_bk]\n",
    "            \n",
    "            prev_cur = prev[prev.SK_ID_CURR==curr_id]\n",
    "            prev_cur['SK_ID_CURR'] = curr_id_bk\n",
    "            for c in date_feature:\n",
    "                prev_cur.loc[prev[c]!=365243, c] -= day_diff\n",
    "            \n",
    "            # ==== future ====\n",
    "            a = prev_bk.groupby(keys).size()\n",
    "            a.name = 'a'\n",
    "            b = prev_cur.groupby(keys).size()\n",
    "            b.name = 'b'\n",
    "            \n",
    "            tmp = pd.concat([a, b], axis=1, join='outer')\n",
    "            tmp[['a', 'b']] = tmp[['a', 'b']].fillna(0)\n",
    "            tmp['need'] = tmp['a'] - tmp['b']\n",
    "            \n",
    "            base = tmp[tmp.need < 0][['need']]\n",
    "            base.need = base.need.map(abs)\n",
    "            \n",
    "            aug = pd.DataFrame()\n",
    "            while base.shape[0] > 0:\n",
    "                aug = aug.append(base.drop('need', axis=1))\n",
    "                \n",
    "                base.need -= 1\n",
    "                base = base[base.need>0]\n",
    "            \n",
    "            if aug.shape[0]==0:\n",
    "                df = pd.DataFrame()\n",
    "            else:\n",
    "                df = pd.merge(aug.reset_index(), prev_cur, on=keys, how='left' )\n",
    "            # ==== future end ====\n",
    "            \n",
    "            \n",
    "            li.append(df)\n",
    "        \n",
    "        curr_id_bk, seq_bk, day_bk = curr_id, seq, day\n",
    "        \n",
    "    return li"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:48.625057Z",
     "start_time": "2018-08-28T21:16:48.127310Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>1851565</td>\n",
       "      <td>178701</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>13500.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Card X-Sell</td>\n",
       "      <td>1536648</td>\n",
       "      <td>178701</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>49.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  NAME_CONTRACT_TYPE  AMT_ANNUITY  AMT_APPLICATION  AMT_CREDIT  \\\n",
       "0    Revolving loans         -1.0              0.0         0.0   \n",
       "1    Revolving loans      13500.0         270000.0    270000.0   \n",
       "\n",
       "   AMT_DOWN_PAYMENT  AMT_GOODS_PRICE WEEKDAY_APPR_PROCESS_START  \\\n",
       "0              -1.0             -1.0                  WEDNESDAY   \n",
       "1              -1.0         270000.0                  WEDNESDAY   \n",
       "\n",
       "   HOUR_APPR_PROCESS_START FLAG_LAST_APPL_PER_CONTRACT  \\\n",
       "0                       11                           Y   \n",
       "1                       12                           Y   \n",
       "\n",
       "   NFLAG_LAST_APPL_IN_DAY  RATE_DOWN_PAYMENT NAME_CONTRACT_STATUS  \\\n",
       "0                       1               -1.0             Canceled   \n",
       "1                       1               -1.0             Approved   \n",
       "\n",
       "  NAME_TYPE_SUITE PRODUCT_COMBINATION  SK_ID_PREV  SK_ID_CURR  \\\n",
       "0            -NA-         Card Street     1851565      178701   \n",
       "1   Unaccompanied         Card X-Sell     1536648      178701   \n",
       "\n",
       "   RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED NAME_CASH_LOAN_PURPOSE  \\\n",
       "0                   -1.0                      -1.0                    XAP   \n",
       "1                   -1.0                      -1.0                    XAP   \n",
       "\n",
       "   DAYS_DECISION NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_CLIENT_TYPE  \\\n",
       "0              0               XNA                XAP         Repeater   \n",
       "1              0               XNA                XAP         Repeater   \n",
       "\n",
       "  NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "0                 XNA            XNA               XNA   \n",
       "1                 XNA          Cards            x-sell   \n",
       "\n",
       "              CHANNEL_TYPE  SELLERPLACE_AREA NAME_SELLER_INDUSTRY  \\\n",
       "0  Credit and cash offices                -1                  XNA   \n",
       "1  Credit and cash offices                -1                  XNA   \n",
       "\n",
       "   CNT_PAYMENT NAME_YIELD_GROUP  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "0         -1.0              XNA                 NaN             NaN   \n",
       "1          0.0              XNA                 0.0            49.0   \n",
       "\n",
       "   DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "0                        NaN            NaN               NaN   \n",
       "1                   365243.0       365243.0          365243.0   \n",
       "\n",
       "   NFLAG_INSURED_ON_APPROVAL  \n",
       "0                       -1.0  \n",
       "1                        0.0  "
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.concat(backwards((4, 6)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:16:50.251543Z",
     "start_time": "2018-08-28T21:16:48.626743Z"
    }
   },
   "outputs": [],
   "source": [
    "argmin = dup.groupby('user_id').seq.apply(np.argmin)\n",
    "argmax = dup.groupby('user_id').seq.apply(np.argmax)\n",
    "argmax +=1\n",
    "\n",
    "argss = list(zip(argmin.values, argmax.values ))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:18:48.883204Z",
     "start_time": "2018-08-28T21:16:50.253533Z"
    }
   },
   "outputs": [],
   "source": [
    "pool = Pool(NTHREAD)\n",
    "callback = pool.map(backwards, argss)\n",
    "pool.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:18:49.078744Z",
     "start_time": "2018-08-28T21:18:48.886825Z"
    }
   },
   "outputs": [],
   "source": [
    "callback2 = sum( callback , [])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:05.229818Z",
     "start_time": "2018-08-28T21:18:49.080866Z"
    }
   },
   "outputs": [],
   "source": [
    "future_app = pd.concat(callback2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:05.333399Z",
     "start_time": "2018-08-28T21:19:05.233861Z"
    },
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1781858</td>\n",
       "      <td>100279</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>16408.395</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>254700.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>1926820</td>\n",
       "      <td>100279</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>24.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>720.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1924661</td>\n",
       "      <td>100955</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1671021</td>\n",
       "      <td>100955</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>6</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>10055.655</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>101880.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1870308</td>\n",
       "      <td>100955</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>360.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>22826.295</td>\n",
       "      <td>337500.0</td>\n",
       "      <td>408780.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>337500.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>16</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Refused</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1366077</td>\n",
       "      <td>100955</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>6</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Card Street</td>\n",
       "      <td>1851565</td>\n",
       "      <td>178701</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Revolving loans</td>\n",
       "      <td>13500.000</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Card X-Sell</td>\n",
       "      <td>1536648</td>\n",
       "      <td>178701</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cards</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0.0</td>\n",
       "      <td>49.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1324640</td>\n",
       "      <td>247772</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>37263.195</td>\n",
       "      <td>630000.0</td>\n",
       "      <td>729792.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>630000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>1937120</td>\n",
       "      <td>247772</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1080.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2043325</td>\n",
       "      <td>101475</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>9476.955</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>95940.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1548279</td>\n",
       "      <td>101475</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>360.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2787081</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4167</td>\n",
       "      <td>XNA</td>\n",
       "      <td>HC</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2656406</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4364</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Refused</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2358616</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4165</td>\n",
       "      <td>XNA</td>\n",
       "      <td>HC</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2222764</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4396</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>4266.225</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>125136.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2492530</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4145</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>48.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>4175.0</td>\n",
       "      <td>5585.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>12185.370</td>\n",
       "      <td>229500.0</td>\n",
       "      <td>266760.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>229500.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Other_A</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>2559483</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>3325</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>3355.0</td>\n",
       "      <td>4405.0</td>\n",
       "      <td>3475.0</td>\n",
       "      <td>3483.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>14312.880</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>313839.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>270000.0</td>\n",
       "      <td>TUESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>2078085</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>3933</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>3963.0</td>\n",
       "      <td>5013.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>29134.935</td>\n",
       "      <td>828000.0</td>\n",
       "      <td>991944.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>828000.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Refused</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1178888</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4364</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>29450.205</td>\n",
       "      <td>837000.0</td>\n",
       "      <td>1002726.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>837000.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Refused</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1917375</td>\n",
       "      <td>101790</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>4396</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>HC</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>5405.850</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>101880.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1050559</td>\n",
       "      <td>103690</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>296</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>326.0</td>\n",
       "      <td>1016.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>4594.050</td>\n",
       "      <td>42448.5</td>\n",
       "      <td>41350.5</td>\n",
       "      <td>4248.0</td>\n",
       "      <td>42448.5</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.101461</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Family</td>\n",
       "      <td>POS household without interest</td>\n",
       "      <td>1033091</td>\n",
       "      <td>103690</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-2058</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>New</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>95</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>10.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2024.0</td>\n",
       "      <td>-1754.0</td>\n",
       "      <td>-1754.0</td>\n",
       "      <td>-1749.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>5920.650</td>\n",
       "      <td>41503.5</td>\n",
       "      <td>39816.0</td>\n",
       "      <td>4153.5</td>\n",
       "      <td>41503.5</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.102879</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>2608351</td>\n",
       "      <td>103690</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-1270</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Audio/Video</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>95</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>8.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1216.0</td>\n",
       "      <td>-1006.0</td>\n",
       "      <td>-1006.0</td>\n",
       "      <td>-1000.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>6911.370</td>\n",
       "      <td>51745.5</td>\n",
       "      <td>50670.0</td>\n",
       "      <td>5175.0</td>\n",
       "      <td>51745.5</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.100923</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Family</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>1895796</td>\n",
       "      <td>103690</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XAP</td>\n",
       "      <td>-528</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>30</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>10.0</td>\n",
       "      <td>high</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-497.0</td>\n",
       "      <td>-227.0</td>\n",
       "      <td>-227.0</td>\n",
       "      <td>-215.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>26417.610</td>\n",
       "      <td>328500.0</td>\n",
       "      <td>432567.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>328500.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>3</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: high</td>\n",
       "      <td>1954403</td>\n",
       "      <td>402887</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>high</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1080.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>35.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1803637</td>\n",
       "      <td>456062</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>31021.020</td>\n",
       "      <td>922500.0</td>\n",
       "      <td>1056447.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>922500.0</td>\n",
       "      <td>MONDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Children</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2156664</td>\n",
       "      <td>456062</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1800.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>39934.440</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>1006920.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>5</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2339769</td>\n",
       "      <td>161667</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1086.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>14364.630</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>143910.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>135000.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>1301734</td>\n",
       "      <td>456077</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Stone</td>\n",
       "      <td>410</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>360.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2012589</td>\n",
       "      <td>227746</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2084115</td>\n",
       "      <td>227746</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>16576.785</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>314100.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>225000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>1493109</td>\n",
       "      <td>227746</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>31.0</td>\n",
       "      <td>1081.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2012589</td>\n",
       "      <td>227746</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>18</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2084115</td>\n",
       "      <td>227746</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2123900</td>\n",
       "      <td>155343</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>14472.720</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>490500.0</td>\n",
       "      <td>WEDNESDAY</td>\n",
       "      <td>14</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>1289337</td>\n",
       "      <td>155343</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1800.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1831878</td>\n",
       "      <td>228120</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>20398.140</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>271066.5</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>234000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Family</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>2526480</td>\n",
       "      <td>228120</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>18.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>540.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>11</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1393282</td>\n",
       "      <td>141661</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1186177</td>\n",
       "      <td>141661</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>22493.430</td>\n",
       "      <td>594000.0</td>\n",
       "      <td>688090.5</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>594000.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2702692</td>\n",
       "      <td>141661</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>48.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1440.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2132071</td>\n",
       "      <td>294710</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>25221.240</td>\n",
       "      <td>720000.0</td>\n",
       "      <td>862560.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>720000.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2261382</td>\n",
       "      <td>294710</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>60.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1800.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>6</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>1402495</td>\n",
       "      <td>456208</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>156</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2549601</td>\n",
       "      <td>456208</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>21890.025</td>\n",
       "      <td>283500.0</td>\n",
       "      <td>305955.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>283500.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: middle</td>\n",
       "      <td>1776660</td>\n",
       "      <td>456208</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>18.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>540.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>27324.000</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>450000.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>10</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: high</td>\n",
       "      <td>2422113</td>\n",
       "      <td>449596</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Contact center</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>36.0</td>\n",
       "      <td>high</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>30.0</td>\n",
       "      <td>1080.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>-1.000</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Canceled</td>\n",
       "      <td>-NA-</td>\n",
       "      <td>Cash</td>\n",
       "      <td>2840445</td>\n",
       "      <td>456226</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Cash loans</td>\n",
       "      <td>34969.950</td>\n",
       "      <td>472500.0</td>\n",
       "      <td>500566.5</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>472500.0</td>\n",
       "      <td>THURSDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>-1.000000</td>\n",
       "      <td>Approved</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>2370246</td>\n",
       "      <td>456226</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>-1.0</td>\n",
       "      <td>XNA</td>\n",
       "      <td>0</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>18.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>31.0</td>\n",
       "      <td>541.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>30156 rows × 37 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "   NAME_CONTRACT_TYPE  AMT_ANNUITY  AMT_APPLICATION  AMT_CREDIT  \\\n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    16408.395         225000.0    254700.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans       -1.000              0.0         0.0   \n",
       "2          Cash loans    10055.655          90000.0    101880.0   \n",
       "3          Cash loans    22826.295         337500.0    408780.0   \n",
       "0     Revolving loans       -1.000              0.0         0.0   \n",
       "1     Revolving loans    13500.000         270000.0    270000.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    37263.195         630000.0    729792.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans     9476.955          90000.0     95940.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans       -1.000              0.0         0.0   \n",
       "2          Cash loans       -1.000              0.0         0.0   \n",
       "3          Cash loans       -1.000              0.0         0.0   \n",
       "4          Cash loans     4266.225          99000.0    125136.0   \n",
       "5          Cash loans    12185.370         229500.0    266760.0   \n",
       "6          Cash loans    14312.880         270000.0    313839.0   \n",
       "7          Cash loans    29134.935         828000.0    991944.0   \n",
       "8          Cash loans    29450.205         837000.0   1002726.0   \n",
       "0          Cash loans     5405.850          90000.0    101880.0   \n",
       "1      Consumer loans     4594.050          42448.5     41350.5   \n",
       "2      Consumer loans     5920.650          41503.5     39816.0   \n",
       "3      Consumer loans     6911.370          51745.5     50670.0   \n",
       "..                ...          ...              ...         ...   \n",
       "2          Cash loans    26417.610         328500.0    432567.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    31021.020         922500.0   1056447.0   \n",
       "0          Cash loans    39934.440         900000.0   1006920.0   \n",
       "0          Cash loans    14364.630         135000.0    143910.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans       -1.000              0.0         0.0   \n",
       "2          Cash loans    16576.785         225000.0    314100.0   \n",
       "3          Cash loans       -1.000              0.0         0.0   \n",
       "4          Cash loans       -1.000              0.0         0.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    14472.720         490500.0    490500.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    20398.140         234000.0    271066.5   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans       -1.000              0.0         0.0   \n",
       "2          Cash loans    22493.430         594000.0    688090.5   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    25221.240         720000.0    862560.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans       -1.000              0.0         0.0   \n",
       "2          Cash loans    21890.025         283500.0    305955.0   \n",
       "0          Cash loans    27324.000         450000.0    450000.0   \n",
       "0          Cash loans       -1.000              0.0         0.0   \n",
       "1          Cash loans    34969.950         472500.0    500566.5   \n",
       "\n",
       "    AMT_DOWN_PAYMENT  AMT_GOODS_PRICE WEEKDAY_APPR_PROCESS_START  \\\n",
       "0               -1.0             -1.0                  WEDNESDAY   \n",
       "1               -1.0         225000.0                  WEDNESDAY   \n",
       "0               -1.0             -1.0                     FRIDAY   \n",
       "1               -1.0             -1.0                   THURSDAY   \n",
       "2               -1.0          90000.0                     FRIDAY   \n",
       "3               -1.0         337500.0                   THURSDAY   \n",
       "0               -1.0             -1.0                  WEDNESDAY   \n",
       "1               -1.0         270000.0                  WEDNESDAY   \n",
       "0               -1.0             -1.0                   THURSDAY   \n",
       "1               -1.0         630000.0                   THURSDAY   \n",
       "0               -1.0             -1.0                    TUESDAY   \n",
       "1               -1.0          90000.0                    TUESDAY   \n",
       "0               -1.0             -1.0                     FRIDAY   \n",
       "1               -1.0             -1.0                   SATURDAY   \n",
       "2               -1.0             -1.0                  WEDNESDAY   \n",
       "3               -1.0             -1.0                  WEDNESDAY   \n",
       "4               -1.0          99000.0                   THURSDAY   \n",
       "5               -1.0         229500.0                  WEDNESDAY   \n",
       "6               -1.0         270000.0                    TUESDAY   \n",
       "7               -1.0         828000.0                   SATURDAY   \n",
       "8               -1.0         837000.0                  WEDNESDAY   \n",
       "0               -1.0          90000.0                     MONDAY   \n",
       "1             4248.0          42448.5                   SATURDAY   \n",
       "2             4153.5          41503.5                  WEDNESDAY   \n",
       "3             5175.0          51745.5                  WEDNESDAY   \n",
       "..               ...              ...                        ...   \n",
       "2               -1.0         328500.0                     SUNDAY   \n",
       "0               -1.0             -1.0                     MONDAY   \n",
       "1               -1.0         922500.0                     MONDAY   \n",
       "0               -1.0         900000.0                     FRIDAY   \n",
       "0               -1.0         135000.0                     FRIDAY   \n",
       "0               -1.0             -1.0                   THURSDAY   \n",
       "1               -1.0             -1.0                   THURSDAY   \n",
       "2               -1.0         225000.0                   THURSDAY   \n",
       "3               -1.0             -1.0                   THURSDAY   \n",
       "4               -1.0             -1.0                   THURSDAY   \n",
       "0               -1.0             -1.0                  WEDNESDAY   \n",
       "1               -1.0         490500.0                  WEDNESDAY   \n",
       "0               -1.0             -1.0                   THURSDAY   \n",
       "1               -1.0         234000.0                   THURSDAY   \n",
       "0               -1.0             -1.0                     FRIDAY   \n",
       "1               -1.0             -1.0                     FRIDAY   \n",
       "2               -1.0         594000.0                     FRIDAY   \n",
       "0               -1.0             -1.0                   SATURDAY   \n",
       "1               -1.0         720000.0                   SATURDAY   \n",
       "0               -1.0             -1.0                   SATURDAY   \n",
       "1               -1.0             -1.0                   THURSDAY   \n",
       "2               -1.0         283500.0                   THURSDAY   \n",
       "0               -1.0         450000.0                   THURSDAY   \n",
       "0               -1.0             -1.0                   THURSDAY   \n",
       "1               -1.0         472500.0                   THURSDAY   \n",
       "\n",
       "    HOUR_APPR_PROCESS_START FLAG_LAST_APPL_PER_CONTRACT  \\\n",
       "0                        16                           Y   \n",
       "1                        16                           Y   \n",
       "0                        10                           Y   \n",
       "1                        16                           Y   \n",
       "2                        10                           Y   \n",
       "3                        16                           Y   \n",
       "0                        11                           Y   \n",
       "1                        12                           Y   \n",
       "0                        14                           Y   \n",
       "1                        14                           Y   \n",
       "0                         9                           Y   \n",
       "1                         9                           Y   \n",
       "0                        13                           Y   \n",
       "1                        15                           Y   \n",
       "2                        12                           Y   \n",
       "3                        13                           Y   \n",
       "4                        14                           Y   \n",
       "5                        14                           Y   \n",
       "6                        14                           Y   \n",
       "7                        15                           Y   \n",
       "8                        13                           Y   \n",
       "0                        14                           Y   \n",
       "1                        11                           Y   \n",
       "2                        14                           Y   \n",
       "3                        10                           Y   \n",
       "..                      ...                         ...   \n",
       "2                         3                           Y   \n",
       "0                        14                           Y   \n",
       "1                        14                           Y   \n",
       "0                         5                           Y   \n",
       "0                        10                           Y   \n",
       "0                        18                           Y   \n",
       "1                        18                           Y   \n",
       "2                        18                           Y   \n",
       "3                        18                           Y   \n",
       "4                        18                           Y   \n",
       "0                        14                           Y   \n",
       "1                        14                           Y   \n",
       "0                        13                           Y   \n",
       "1                        13                           Y   \n",
       "0                        11                           Y   \n",
       "1                        13                           Y   \n",
       "2                        13                           Y   \n",
       "0                        13                           Y   \n",
       "1                        13                           Y   \n",
       "0                         6                           Y   \n",
       "1                         9                           Y   \n",
       "2                         9                           Y   \n",
       "0                        10                           Y   \n",
       "0                        15                           Y   \n",
       "1                        15                           Y   \n",
       "\n",
       "    NFLAG_LAST_APPL_IN_DAY  RATE_DOWN_PAYMENT NAME_CONTRACT_STATUS  \\\n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Canceled   \n",
       "2                        1          -1.000000             Approved   \n",
       "3                        1          -1.000000              Refused   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000              Refused   \n",
       "1                        1          -1.000000             Canceled   \n",
       "2                        1          -1.000000              Refused   \n",
       "3                        1          -1.000000             Canceled   \n",
       "4                        1          -1.000000             Approved   \n",
       "5                        1          -1.000000             Approved   \n",
       "6                        1          -1.000000             Approved   \n",
       "7                        1          -1.000000              Refused   \n",
       "8                        1          -1.000000              Refused   \n",
       "0                        1          -1.000000             Approved   \n",
       "1                        1           0.101461             Approved   \n",
       "2                        1           0.102879             Approved   \n",
       "3                        1           0.100923             Approved   \n",
       "..                     ...                ...                  ...   \n",
       "2                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Canceled   \n",
       "2                        1          -1.000000             Approved   \n",
       "3                        1          -1.000000             Canceled   \n",
       "4                        1          -1.000000             Canceled   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Canceled   \n",
       "2                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Canceled   \n",
       "2                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Approved   \n",
       "0                        1          -1.000000             Canceled   \n",
       "1                        1          -1.000000             Approved   \n",
       "\n",
       "   NAME_TYPE_SUITE             PRODUCT_COMBINATION  SK_ID_PREV  SK_ID_CURR  \\\n",
       "0             -NA-                            Cash     1781858      100279   \n",
       "1    Unaccompanied             Cash X-Sell: middle     1926820      100279   \n",
       "0             -NA-                            Cash     1924661      100955   \n",
       "1             -NA-                            Cash     1671021      100955   \n",
       "2    Unaccompanied                Cash X-Sell: low     1870308      100955   \n",
       "3    Unaccompanied                Cash X-Sell: low     1366077      100955   \n",
       "0             -NA-                     Card Street     1851565      178701   \n",
       "1    Unaccompanied                     Card X-Sell     1536648      178701   \n",
       "0             -NA-                            Cash     1324640      247772   \n",
       "1    Unaccompanied             Cash X-Sell: middle     1937120      247772   \n",
       "0             -NA-                            Cash     2043325      101475   \n",
       "1    Unaccompanied                Cash X-Sell: low     1548279      101475   \n",
       "0             -NA-                            Cash     2787081      101790   \n",
       "1             -NA-                            Cash     2656406      101790   \n",
       "2             -NA-                            Cash     2358616      101790   \n",
       "3             -NA-                            Cash     2222764      101790   \n",
       "4    Unaccompanied                Cash X-Sell: low     2492530      101790   \n",
       "5          Other_A             Cash X-Sell: middle     2559483      101790   \n",
       "6             -NA-             Cash X-Sell: middle     2078085      101790   \n",
       "7    Unaccompanied                Cash X-Sell: low     1178888      101790   \n",
       "8    Unaccompanied                Cash X-Sell: low     1917375      101790   \n",
       "0    Unaccompanied                Cash X-Sell: low     1050559      103690   \n",
       "1           Family  POS household without interest     1033091      103690   \n",
       "2             -NA-     POS household with interest     2608351      103690   \n",
       "3           Family        POS mobile with interest     1895796      103690   \n",
       "..             ...                             ...         ...         ...   \n",
       "2    Unaccompanied               Cash X-Sell: high     1954403      402887   \n",
       "0             -NA-                            Cash     1803637      456062   \n",
       "1         Children                Cash X-Sell: low     2156664      456062   \n",
       "0    Unaccompanied                Cash X-Sell: low     2339769      161667   \n",
       "0    Unaccompanied             Cash X-Sell: middle     1301734      456077   \n",
       "0             -NA-                            Cash     2012589      227746   \n",
       "1             -NA-                            Cash     2084115      227746   \n",
       "2    Unaccompanied             Cash X-Sell: middle     1493109      227746   \n",
       "3             -NA-                            Cash     2012589      227746   \n",
       "4             -NA-                            Cash     2084115      227746   \n",
       "0             -NA-                            Cash     2123900      155343   \n",
       "1    Unaccompanied                Cash X-Sell: low     1289337      155343   \n",
       "0             -NA-                            Cash     1831878      228120   \n",
       "1           Family             Cash X-Sell: middle     2526480      228120   \n",
       "0             -NA-                            Cash     1393282      141661   \n",
       "1             -NA-                            Cash     1186177      141661   \n",
       "2    Unaccompanied                Cash X-Sell: low     2702692      141661   \n",
       "0             -NA-                            Cash     2132071      294710   \n",
       "1    Unaccompanied                Cash X-Sell: low     2261382      294710   \n",
       "0             -NA-                            Cash     1402495      456208   \n",
       "1             -NA-                            Cash     2549601      456208   \n",
       "2    Unaccompanied             Cash X-Sell: middle     1776660      456208   \n",
       "0    Unaccompanied               Cash X-Sell: high     2422113      449596   \n",
       "0             -NA-                            Cash     2840445      456226   \n",
       "1    Unaccompanied                Cash X-Sell: low     2370246      456226   \n",
       "\n",
       "    RATE_INTEREST_PRIMARY  RATE_INTEREST_PRIVILEGED NAME_CASH_LOAN_PURPOSE  \\\n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "3                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XAP   \n",
       "1                    -1.0                      -1.0                    XAP   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "3                    -1.0                      -1.0                    XNA   \n",
       "4                    -1.0                      -1.0                    XNA   \n",
       "5                    -1.0                      -1.0                    XNA   \n",
       "6                    -1.0                      -1.0                    XNA   \n",
       "7                    -1.0                      -1.0                    XNA   \n",
       "8                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XAP   \n",
       "2                    -1.0                      -1.0                    XAP   \n",
       "3                    -1.0                      -1.0                    XAP   \n",
       "..                    ...                       ...                    ...   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "3                    -1.0                      -1.0                    XNA   \n",
       "4                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "2                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "0                    -1.0                      -1.0                    XNA   \n",
       "1                    -1.0                      -1.0                    XNA   \n",
       "\n",
       "    DAYS_DECISION      NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_CLIENT_TYPE  \\\n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               6                    XNA                XAP         Repeater   \n",
       "2               0  Cash through the bank                XAP         Repeater   \n",
       "3               6  Cash through the bank                 HC         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0                    XNA                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0            4167                    XNA                 HC         Repeater   \n",
       "1            4364                    XNA                XAP         Repeater   \n",
       "2            4165                    XNA                 HC         Repeater   \n",
       "3            4396                    XNA                XAP         Repeater   \n",
       "4            4145  Cash through the bank                XAP         Repeater   \n",
       "5            3325  Cash through the bank                XAP        Refreshed   \n",
       "6            3933  Cash through the bank                XAP         Repeater   \n",
       "7            4364  Cash through the bank                 HC         Repeater   \n",
       "8            4396  Cash through the bank                 HC         Repeater   \n",
       "0             296  Cash through the bank                XAP         Repeater   \n",
       "1           -2058  Cash through the bank                XAP              New   \n",
       "2           -1270  Cash through the bank                XAP         Repeater   \n",
       "3            -528  Cash through the bank                XAP         Repeater   \n",
       "..            ...                    ...                ...              ...   \n",
       "2               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "0               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0                    XNA                XAP         Repeater   \n",
       "2               0  Cash through the bank                XAP         Repeater   \n",
       "3               0                    XNA                XAP         Repeater   \n",
       "4               0                    XNA                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0                    XNA                XAP         Repeater   \n",
       "2               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "0             156                    XNA                XAP         Repeater   \n",
       "1               0                    XNA                XAP         Repeater   \n",
       "2               0  Cash through the bank                XAP         Repeater   \n",
       "0               0  Cash through the bank                XAP         Repeater   \n",
       "0               0                    XNA                XAP         Repeater   \n",
       "1               0  Cash through the bank                XAP         Repeater   \n",
       "\n",
       "     NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA            XNA               XNA   \n",
       "2                    XNA           Cash            x-sell   \n",
       "3                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA          Cards            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA            XNA               XNA   \n",
       "2                    XNA            XNA               XNA   \n",
       "3                    XNA            XNA               XNA   \n",
       "4                    XNA           Cash            x-sell   \n",
       "5                    XNA           Cash            x-sell   \n",
       "6                    XNA           Cash            x-sell   \n",
       "7                    XNA           Cash            x-sell   \n",
       "8                    XNA           Cash            x-sell   \n",
       "0                    XNA           Cash            x-sell   \n",
       "1   Consumer Electronics            POS               XNA   \n",
       "2            Audio/Video            POS               XNA   \n",
       "3                 Mobile            POS               XNA   \n",
       "..                   ...            ...               ...   \n",
       "2                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA           Cash            x-sell   \n",
       "0                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA            XNA               XNA   \n",
       "2                    XNA           Cash            x-sell   \n",
       "3                    XNA            XNA               XNA   \n",
       "4                    XNA            XNA               XNA   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA            XNA               XNA   \n",
       "2                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA            XNA               XNA   \n",
       "2                    XNA           Cash            x-sell   \n",
       "0                    XNA           Cash            x-sell   \n",
       "0                    XNA            XNA               XNA   \n",
       "1                    XNA           Cash            x-sell   \n",
       "\n",
       "               CHANNEL_TYPE  SELLERPLACE_AREA  NAME_SELLER_INDUSTRY  \\\n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "3   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "3   Credit and cash offices                -1                   XNA   \n",
       "4   Credit and cash offices                -1                   XNA   \n",
       "5   Credit and cash offices                -1                   XNA   \n",
       "6   Credit and cash offices                -1                   XNA   \n",
       "7   Credit and cash offices                -1                   XNA   \n",
       "8   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1              Country-wide                95  Consumer electronics   \n",
       "2              Country-wide                95  Consumer electronics   \n",
       "3              Country-wide                30          Connectivity   \n",
       "..                      ...               ...                   ...   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0            Contact center                -1                   XNA   \n",
       "0                     Stone               410  Consumer electronics   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "3   Credit and cash offices                -1                   XNA   \n",
       "4   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "0   Credit and cash offices                 0                   XNA   \n",
       "1   Credit and cash offices                 0                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "2   Credit and cash offices                -1                   XNA   \n",
       "0            Contact center                -1                   XNA   \n",
       "0   Credit and cash offices                -1                   XNA   \n",
       "1   Credit and cash offices                -1                   XNA   \n",
       "\n",
       "    CNT_PAYMENT NAME_YIELD_GROUP  DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  \\\n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          24.0           middle            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          -1.0              XNA                 NaN             NaN   \n",
       "2          12.0       low_normal            365243.0            30.0   \n",
       "3          24.0       low_normal                 NaN             NaN   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1           0.0              XNA                 0.0            49.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          36.0           middle            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          12.0       low_normal            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          -1.0              XNA                 NaN             NaN   \n",
       "2          -1.0              XNA                 NaN             NaN   \n",
       "3          -1.0              XNA                 NaN             NaN   \n",
       "4          48.0       low_normal            365243.0          4175.0   \n",
       "5          36.0           middle            365243.0          3355.0   \n",
       "6          36.0           middle            365243.0          3963.0   \n",
       "7          60.0       low_normal                 NaN             NaN   \n",
       "8          60.0       low_normal                 NaN             NaN   \n",
       "0          24.0       low_normal            365243.0           326.0   \n",
       "1          10.0       low_normal            365243.0         -2024.0   \n",
       "2           8.0           middle            365243.0         -1216.0   \n",
       "3          10.0             high            365243.0          -497.0   \n",
       "..          ...              ...                 ...             ...   \n",
       "2          36.0             high            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          60.0       low_normal            365243.0            30.0   \n",
       "0          36.0       low_normal            365243.0        365243.0   \n",
       "0          12.0           middle            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          -1.0              XNA                 NaN             NaN   \n",
       "2          36.0           middle            365243.0            31.0   \n",
       "3          -1.0              XNA                 NaN             NaN   \n",
       "4          -1.0              XNA                 NaN             NaN   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          60.0       low_normal            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          18.0           middle            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          -1.0              XNA                 NaN             NaN   \n",
       "2          48.0       low_normal            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          60.0       low_normal            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          -1.0              XNA                 NaN             NaN   \n",
       "2          18.0           middle            365243.0            30.0   \n",
       "0          36.0             high            365243.0            30.0   \n",
       "0          -1.0              XNA                 NaN             NaN   \n",
       "1          18.0       low_normal            365243.0            31.0   \n",
       "\n",
       "    DAYS_LAST_DUE_1ST_VERSION  DAYS_LAST_DUE  DAYS_TERMINATION  \\\n",
       "0                         NaN            NaN               NaN   \n",
       "1                       720.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                         NaN            NaN               NaN   \n",
       "2                       360.0       365243.0          365243.0   \n",
       "3                         NaN            NaN               NaN   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                    365243.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                      1080.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                       360.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                         NaN            NaN               NaN   \n",
       "2                         NaN            NaN               NaN   \n",
       "3                         NaN            NaN               NaN   \n",
       "4                      5585.0       365243.0          365243.0   \n",
       "5                      4405.0         3475.0            3483.0   \n",
       "6                      5013.0       365243.0          365243.0   \n",
       "7                         NaN            NaN               NaN   \n",
       "8                         NaN            NaN               NaN   \n",
       "0                      1016.0       365243.0          365243.0   \n",
       "1                     -1754.0        -1754.0           -1749.0   \n",
       "2                     -1006.0        -1006.0           -1000.0   \n",
       "3                      -227.0         -227.0            -215.0   \n",
       "..                        ...            ...               ...   \n",
       "2                      1080.0           30.0              35.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                      1800.0       365243.0          365243.0   \n",
       "0                      1086.0       365243.0          365243.0   \n",
       "0                       360.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                         NaN            NaN               NaN   \n",
       "2                      1081.0       365243.0          365243.0   \n",
       "3                         NaN            NaN               NaN   \n",
       "4                         NaN            NaN               NaN   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                      1800.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                       540.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                         NaN            NaN               NaN   \n",
       "2                      1440.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                      1800.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                         NaN            NaN               NaN   \n",
       "2                       540.0       365243.0          365243.0   \n",
       "0                      1080.0       365243.0          365243.0   \n",
       "0                         NaN            NaN               NaN   \n",
       "1                       541.0       365243.0          365243.0   \n",
       "\n",
       "    NFLAG_INSURED_ON_APPROVAL  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                        -1.0  \n",
       "1                        -1.0  \n",
       "2                         1.0  \n",
       "3                        -1.0  \n",
       "0                        -1.0  \n",
       "1                         0.0  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                        -1.0  \n",
       "1                        -1.0  \n",
       "2                        -1.0  \n",
       "3                        -1.0  \n",
       "4                         1.0  \n",
       "5                         1.0  \n",
       "6                         1.0  \n",
       "7                        -1.0  \n",
       "8                        -1.0  \n",
       "0                         1.0  \n",
       "1                         1.0  \n",
       "2                         0.0  \n",
       "3                         0.0  \n",
       "..                        ...  \n",
       "2                         1.0  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                         0.0  \n",
       "0                         1.0  \n",
       "0                        -1.0  \n",
       "1                        -1.0  \n",
       "2                         0.0  \n",
       "3                        -1.0  \n",
       "4                        -1.0  \n",
       "0                        -1.0  \n",
       "1                         0.0  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                        -1.0  \n",
       "1                        -1.0  \n",
       "2                         1.0  \n",
       "0                        -1.0  \n",
       "1                         1.0  \n",
       "0                        -1.0  \n",
       "1                        -1.0  \n",
       "2                         1.0  \n",
       "0                         0.0  \n",
       "0                        -1.0  \n",
       "1                         0.0  \n",
       "\n",
       "[30156 rows x 37 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "future_app"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# check"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:05.339266Z",
     "start_time": "2018-08-28T21:19:05.335235Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(8154,)"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "future_app.SK_ID_CURR.unique().shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:05.344952Z",
     "start_time": "2018-08-28T21:19:05.341157Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(24948,)"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "future_app.SK_ID_PREV.unique().shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# merge with clean prev"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:15.295773Z",
     "start_time": "2018-08-28T21:19:05.346448Z"
    }
   },
   "outputs": [],
   "source": [
    "prev = pd.read_csv('../input/previous_application.csv.zip')\n",
    "col = prev.columns.tolist()\n",
    "prev.drop(['SK_ID_CURR']+date_feature, axis=1, inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:15.348089Z",
     "start_time": "2018-08-28T21:19:15.298299Z"
    }
   },
   "outputs": [],
   "source": [
    "future_app_base = future_app[['SK_ID_PREV', 'SK_ID_CURR']+date_feature]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:15.353433Z",
     "start_time": "2018-08-28T21:19:15.349921Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(30156, 37)"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "future_app.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:15.358137Z",
     "start_time": "2018-08-28T21:19:15.354980Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(1670214, 30)"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:16.468415Z",
     "start_time": "2018-08-28T21:19:15.359749Z"
    }
   },
   "outputs": [],
   "source": [
    "future_app2 = pd.merge(future_app_base, prev, on='SK_ID_PREV', how='left')[col]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:16.496741Z",
     "start_time": "2018-08-28T21:19:16.470455Z"
    },
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count    30156.000000\n",
       "mean        32.820931\n",
       "std        262.864317\n",
       "min      -2572.000000\n",
       "25%          0.000000\n",
       "50%          0.000000\n",
       "75%          0.000000\n",
       "max       8687.000000\n",
       "Name: DAYS_DECISION, dtype: float64"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "future_app2.DAYS_DECISION.describe() #[['SK_ID_PREV', 'SK_ID_CURR']+date_feature]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:16.510634Z",
     "start_time": "2018-08-28T21:19:16.498421Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((2480, 37), (27676, 37))"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev2 = future_app2[future_app2.DAYS_DECISION<0]\n",
    "future_app3 = future_app2[future_app2.DAYS_DECISION>=0]\n",
    "prev2.shape, future_app3.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:17.326974Z",
     "start_time": "2018-08-28T21:19:16.512330Z"
    }
   },
   "outputs": [],
   "source": [
    "future_app3.to_csv('../data/future_application_v3.csv.gz', index=False, compression='gzip')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:17.400185Z",
     "start_time": "2018-08-28T21:19:17.328852Z"
    }
   },
   "outputs": [],
   "source": [
    "prev2.to_csv('../data/prev_backwards_v3.csv.gz', index=False, compression='gzip')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# concat prev"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:26.583116Z",
     "start_time": "2018-08-28T21:19:17.402019Z"
    }
   },
   "outputs": [],
   "source": [
    "prev_forwards = pd.read_csv('../data/prev_forwards_v3.csv.gz')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:26.588954Z",
     "start_time": "2018-08-28T21:19:26.585343Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((2480, 37), (1671673, 37))"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prev2.shape, prev_forwards.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:27.246163Z",
     "start_time": "2018-08-28T21:19:26.590570Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE_x</th>\n",
       "      <th>AMT_ANNUITY_x</th>\n",
       "      <th>AMT_APPLICATION_x</th>\n",
       "      <th>AMT_CREDIT_x</th>\n",
       "      <th>AMT_DOWN_PAYMENT_x</th>\n",
       "      <th>AMT_GOODS_PRICE_x</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START_x</th>\n",
       "      <th>HOUR_APPR_PROCESS_START_x</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT_x</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY_x</th>\n",
       "      <th>RATE_DOWN_PAYMENT_x</th>\n",
       "      <th>RATE_INTEREST_PRIMARY_x</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED_x</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE_x</th>\n",
       "      <th>NAME_CONTRACT_STATUS_x</th>\n",
       "      <th>DAYS_DECISION_x</th>\n",
       "      <th>NAME_PAYMENT_TYPE_x</th>\n",
       "      <th>CODE_REJECT_REASON_x</th>\n",
       "      <th>NAME_TYPE_SUITE_x</th>\n",
       "      <th>NAME_CLIENT_TYPE_x</th>\n",
       "      <th>NAME_GOODS_CATEGORY_x</th>\n",
       "      <th>NAME_PORTFOLIO_x</th>\n",
       "      <th>NAME_PRODUCT_TYPE_x</th>\n",
       "      <th>CHANNEL_TYPE_x</th>\n",
       "      <th>SELLERPLACE_AREA_x</th>\n",
       "      <th>NAME_SELLER_INDUSTRY_x</th>\n",
       "      <th>CNT_PAYMENT_x</th>\n",
       "      <th>NAME_YIELD_GROUP_x</th>\n",
       "      <th>PRODUCT_COMBINATION_x</th>\n",
       "      <th>DAYS_FIRST_DRAWING_x</th>\n",
       "      <th>DAYS_FIRST_DUE_x</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION_x</th>\n",
       "      <th>DAYS_LAST_DUE_x</th>\n",
       "      <th>DAYS_TERMINATION_x</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL_x</th>\n",
       "      <th>NAME_CONTRACT_TYPE_y</th>\n",
       "      <th>AMT_ANNUITY_y</th>\n",
       "      <th>AMT_APPLICATION_y</th>\n",
       "      <th>AMT_CREDIT_y</th>\n",
       "      <th>AMT_DOWN_PAYMENT_y</th>\n",
       "      <th>AMT_GOODS_PRICE_y</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START_y</th>\n",
       "      <th>HOUR_APPR_PROCESS_START_y</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT_y</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY_y</th>\n",
       "      <th>RATE_DOWN_PAYMENT_y</th>\n",
       "      <th>RATE_INTEREST_PRIMARY_y</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED_y</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE_y</th>\n",
       "      <th>NAME_CONTRACT_STATUS_y</th>\n",
       "      <th>DAYS_DECISION_y</th>\n",
       "      <th>NAME_PAYMENT_TYPE_y</th>\n",
       "      <th>CODE_REJECT_REASON_y</th>\n",
       "      <th>NAME_TYPE_SUITE_y</th>\n",
       "      <th>NAME_CLIENT_TYPE_y</th>\n",
       "      <th>NAME_GOODS_CATEGORY_y</th>\n",
       "      <th>NAME_PORTFOLIO_y</th>\n",
       "      <th>NAME_PRODUCT_TYPE_y</th>\n",
       "      <th>CHANNEL_TYPE_y</th>\n",
       "      <th>SELLERPLACE_AREA_y</th>\n",
       "      <th>NAME_SELLER_INDUSTRY_y</th>\n",
       "      <th>CNT_PAYMENT_y</th>\n",
       "      <th>NAME_YIELD_GROUP_y</th>\n",
       "      <th>PRODUCT_COMBINATION_y</th>\n",
       "      <th>DAYS_FIRST_DRAWING_y</th>\n",
       "      <th>DAYS_FIRST_DUE_y</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION_y</th>\n",
       "      <th>DAYS_LAST_DUE_y</th>\n",
       "      <th>DAYS_TERMINATION_y</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL_y</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [SK_ID_PREV, SK_ID_CURR, NAME_CONTRACT_TYPE_x, AMT_ANNUITY_x, AMT_APPLICATION_x, AMT_CREDIT_x, AMT_DOWN_PAYMENT_x, AMT_GOODS_PRICE_x, WEEKDAY_APPR_PROCESS_START_x, HOUR_APPR_PROCESS_START_x, FLAG_LAST_APPL_PER_CONTRACT_x, NFLAG_LAST_APPL_IN_DAY_x, RATE_DOWN_PAYMENT_x, RATE_INTEREST_PRIMARY_x, RATE_INTEREST_PRIVILEGED_x, NAME_CASH_LOAN_PURPOSE_x, NAME_CONTRACT_STATUS_x, DAYS_DECISION_x, NAME_PAYMENT_TYPE_x, CODE_REJECT_REASON_x, NAME_TYPE_SUITE_x, NAME_CLIENT_TYPE_x, NAME_GOODS_CATEGORY_x, NAME_PORTFOLIO_x, NAME_PRODUCT_TYPE_x, CHANNEL_TYPE_x, SELLERPLACE_AREA_x, NAME_SELLER_INDUSTRY_x, CNT_PAYMENT_x, NAME_YIELD_GROUP_x, PRODUCT_COMBINATION_x, DAYS_FIRST_DRAWING_x, DAYS_FIRST_DUE_x, DAYS_LAST_DUE_1ST_VERSION_x, DAYS_LAST_DUE_x, DAYS_TERMINATION_x, NFLAG_INSURED_ON_APPROVAL_x, NAME_CONTRACT_TYPE_y, AMT_ANNUITY_y, AMT_APPLICATION_y, AMT_CREDIT_y, AMT_DOWN_PAYMENT_y, AMT_GOODS_PRICE_y, WEEKDAY_APPR_PROCESS_START_y, HOUR_APPR_PROCESS_START_y, FLAG_LAST_APPL_PER_CONTRACT_y, NFLAG_LAST_APPL_IN_DAY_y, RATE_DOWN_PAYMENT_y, RATE_INTEREST_PRIMARY_y, RATE_INTEREST_PRIVILEGED_y, NAME_CASH_LOAN_PURPOSE_y, NAME_CONTRACT_STATUS_y, DAYS_DECISION_y, NAME_PAYMENT_TYPE_y, CODE_REJECT_REASON_y, NAME_TYPE_SUITE_y, NAME_CLIENT_TYPE_y, NAME_GOODS_CATEGORY_y, NAME_PORTFOLIO_y, NAME_PRODUCT_TYPE_y, CHANNEL_TYPE_y, SELLERPLACE_AREA_y, NAME_SELLER_INDUSTRY_y, CNT_PAYMENT_y, NAME_YIELD_GROUP_y, PRODUCT_COMBINATION_y, DAYS_FIRST_DRAWING_y, DAYS_FIRST_DUE_y, DAYS_LAST_DUE_1ST_VERSION_y, DAYS_LAST_DUE_y, DAYS_TERMINATION_y, NFLAG_INSURED_ON_APPROVAL_y]\n",
       "Index: []"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.merge(prev_forwards, prev2, on=['SK_ID_PREV', 'SK_ID_CURR'], how='inner')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:33.114258Z",
     "start_time": "2018-08-28T21:19:27.248045Z"
    }
   },
   "outputs": [],
   "source": [
    "df = pd.concat([prev_forwards, prev2]).sort_values(['SK_ID_CURR', 'SK_ID_PREV']).reset_index(drop=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:33.119471Z",
     "start_time": "2018-08-28T21:19:33.116217Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(1674153, 37)"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:19:33.155349Z",
     "start_time": "2018-08-28T21:19:33.120915Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>SK_ID_PREV</th>\n",
       "      <th>SK_ID_CURR</th>\n",
       "      <th>NAME_CONTRACT_TYPE</th>\n",
       "      <th>AMT_ANNUITY</th>\n",
       "      <th>AMT_APPLICATION</th>\n",
       "      <th>AMT_CREDIT</th>\n",
       "      <th>AMT_DOWN_PAYMENT</th>\n",
       "      <th>AMT_GOODS_PRICE</th>\n",
       "      <th>WEEKDAY_APPR_PROCESS_START</th>\n",
       "      <th>HOUR_APPR_PROCESS_START</th>\n",
       "      <th>FLAG_LAST_APPL_PER_CONTRACT</th>\n",
       "      <th>NFLAG_LAST_APPL_IN_DAY</th>\n",
       "      <th>RATE_DOWN_PAYMENT</th>\n",
       "      <th>RATE_INTEREST_PRIMARY</th>\n",
       "      <th>RATE_INTEREST_PRIVILEGED</th>\n",
       "      <th>NAME_CASH_LOAN_PURPOSE</th>\n",
       "      <th>NAME_CONTRACT_STATUS</th>\n",
       "      <th>DAYS_DECISION</th>\n",
       "      <th>NAME_PAYMENT_TYPE</th>\n",
       "      <th>CODE_REJECT_REASON</th>\n",
       "      <th>NAME_TYPE_SUITE</th>\n",
       "      <th>NAME_CLIENT_TYPE</th>\n",
       "      <th>NAME_GOODS_CATEGORY</th>\n",
       "      <th>NAME_PORTFOLIO</th>\n",
       "      <th>NAME_PRODUCT_TYPE</th>\n",
       "      <th>CHANNEL_TYPE</th>\n",
       "      <th>SELLERPLACE_AREA</th>\n",
       "      <th>NAME_SELLER_INDUSTRY</th>\n",
       "      <th>CNT_PAYMENT</th>\n",
       "      <th>NAME_YIELD_GROUP</th>\n",
       "      <th>PRODUCT_COMBINATION</th>\n",
       "      <th>DAYS_FIRST_DRAWING</th>\n",
       "      <th>DAYS_FIRST_DUE</th>\n",
       "      <th>DAYS_LAST_DUE_1ST_VERSION</th>\n",
       "      <th>DAYS_LAST_DUE</th>\n",
       "      <th>DAYS_TERMINATION</th>\n",
       "      <th>NFLAG_INSURED_ON_APPROVAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1369693</td>\n",
       "      <td>100001</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>3951.000</td>\n",
       "      <td>24835.5</td>\n",
       "      <td>23787.0</td>\n",
       "      <td>2520.0</td>\n",
       "      <td>24835.5</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>13</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.104326</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-1740</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Mobile</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>23</td>\n",
       "      <td>Connectivity</td>\n",
       "      <td>8.0</td>\n",
       "      <td>high</td>\n",
       "      <td>POS mobile with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-1709.0</td>\n",
       "      <td>-1499.0</td>\n",
       "      <td>-1619.0</td>\n",
       "      <td>-1612.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1038818</td>\n",
       "      <td>100002</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>9251.775</td>\n",
       "      <td>179055.0</td>\n",
       "      <td>179055.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>179055.0</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>9</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-606</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>NaN</td>\n",
       "      <td>New</td>\n",
       "      <td>Vehicles</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Stone</td>\n",
       "      <td>500</td>\n",
       "      <td>Auto technology</td>\n",
       "      <td>24.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>POS other with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-565.0</td>\n",
       "      <td>125.0</td>\n",
       "      <td>-25.0</td>\n",
       "      <td>-17.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1810518</td>\n",
       "      <td>100003</td>\n",
       "      <td>Cash loans</td>\n",
       "      <td>98356.995</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>1035882.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>900000.0</td>\n",
       "      <td>FRIDAY</td>\n",
       "      <td>12</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-746</td>\n",
       "      <td>XNA</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Unaccompanied</td>\n",
       "      <td>Repeater</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Cash</td>\n",
       "      <td>x-sell</td>\n",
       "      <td>Credit and cash offices</td>\n",
       "      <td>-1</td>\n",
       "      <td>XNA</td>\n",
       "      <td>12.0</td>\n",
       "      <td>low_normal</td>\n",
       "      <td>Cash X-Sell: low</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-716.0</td>\n",
       "      <td>-386.0</td>\n",
       "      <td>-536.0</td>\n",
       "      <td>-527.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2396755</td>\n",
       "      <td>100003</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>6737.310</td>\n",
       "      <td>68809.5</td>\n",
       "      <td>68053.5</td>\n",
       "      <td>6885.0</td>\n",
       "      <td>68809.5</td>\n",
       "      <td>SATURDAY</td>\n",
       "      <td>15</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.100061</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-2341</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Consumer Electronics</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Country-wide</td>\n",
       "      <td>200</td>\n",
       "      <td>Consumer electronics</td>\n",
       "      <td>12.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS household with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-2310.0</td>\n",
       "      <td>-1980.0</td>\n",
       "      <td>-1980.0</td>\n",
       "      <td>-1976.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2636178</td>\n",
       "      <td>100003</td>\n",
       "      <td>Consumer loans</td>\n",
       "      <td>64567.665</td>\n",
       "      <td>337500.0</td>\n",
       "      <td>348637.5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>337500.0</td>\n",
       "      <td>SUNDAY</td>\n",
       "      <td>17</td>\n",
       "      <td>Y</td>\n",
       "      <td>1</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Approved</td>\n",
       "      <td>-828</td>\n",
       "      <td>Cash through the bank</td>\n",
       "      <td>XAP</td>\n",
       "      <td>Family</td>\n",
       "      <td>Refreshed</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>POS</td>\n",
       "      <td>XNA</td>\n",
       "      <td>Stone</td>\n",
       "      <td>1400</td>\n",
       "      <td>Furniture</td>\n",
       "      <td>6.0</td>\n",
       "      <td>middle</td>\n",
       "      <td>POS industry with interest</td>\n",
       "      <td>365243.0</td>\n",
       "      <td>-797.0</td>\n",
       "      <td>-647.0</td>\n",
       "      <td>-647.0</td>\n",
       "      <td>-639.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   SK_ID_PREV  SK_ID_CURR NAME_CONTRACT_TYPE  AMT_ANNUITY  AMT_APPLICATION  \\\n",
       "0     1369693      100001     Consumer loans     3951.000          24835.5   \n",
       "1     1038818      100002     Consumer loans     9251.775         179055.0   \n",
       "2     1810518      100003         Cash loans    98356.995         900000.0   \n",
       "3     2396755      100003     Consumer loans     6737.310          68809.5   \n",
       "4     2636178      100003     Consumer loans    64567.665         337500.0   \n",
       "\n",
       "   AMT_CREDIT  AMT_DOWN_PAYMENT  AMT_GOODS_PRICE WEEKDAY_APPR_PROCESS_START  \\\n",
       "0     23787.0            2520.0          24835.5                     FRIDAY   \n",
       "1    179055.0               0.0         179055.0                   SATURDAY   \n",
       "2   1035882.0               NaN         900000.0                     FRIDAY   \n",
       "3     68053.5            6885.0          68809.5                   SATURDAY   \n",
       "4    348637.5               0.0         337500.0                     SUNDAY   \n",
       "\n",
       "   HOUR_APPR_PROCESS_START FLAG_LAST_APPL_PER_CONTRACT  \\\n",
       "0                       13                           Y   \n",
       "1                        9                           Y   \n",
       "2                       12                           Y   \n",
       "3                       15                           Y   \n",
       "4                       17                           Y   \n",
       "\n",
       "   NFLAG_LAST_APPL_IN_DAY  RATE_DOWN_PAYMENT  RATE_INTEREST_PRIMARY  \\\n",
       "0                       1           0.104326                    NaN   \n",
       "1                       1           0.000000                    NaN   \n",
       "2                       1                NaN                    NaN   \n",
       "3                       1           0.100061                    NaN   \n",
       "4                       1           0.000000                    NaN   \n",
       "\n",
       "   RATE_INTEREST_PRIVILEGED NAME_CASH_LOAN_PURPOSE NAME_CONTRACT_STATUS  \\\n",
       "0                       NaN                    XAP             Approved   \n",
       "1                       NaN                    XAP             Approved   \n",
       "2                       NaN                    XNA             Approved   \n",
       "3                       NaN                    XAP             Approved   \n",
       "4                       NaN                    XAP             Approved   \n",
       "\n",
       "   DAYS_DECISION      NAME_PAYMENT_TYPE CODE_REJECT_REASON NAME_TYPE_SUITE  \\\n",
       "0          -1740  Cash through the bank                XAP          Family   \n",
       "1           -606                    XNA                XAP             NaN   \n",
       "2           -746                    XNA                XAP   Unaccompanied   \n",
       "3          -2341  Cash through the bank                XAP          Family   \n",
       "4           -828  Cash through the bank                XAP          Family   \n",
       "\n",
       "  NAME_CLIENT_TYPE   NAME_GOODS_CATEGORY NAME_PORTFOLIO NAME_PRODUCT_TYPE  \\\n",
       "0        Refreshed                Mobile            POS               XNA   \n",
       "1              New              Vehicles            POS               XNA   \n",
       "2         Repeater                   XNA           Cash            x-sell   \n",
       "3        Refreshed  Consumer Electronics            POS               XNA   \n",
       "4        Refreshed             Furniture            POS               XNA   \n",
       "\n",
       "              CHANNEL_TYPE  SELLERPLACE_AREA  NAME_SELLER_INDUSTRY  \\\n",
       "0             Country-wide                23          Connectivity   \n",
       "1                    Stone               500       Auto technology   \n",
       "2  Credit and cash offices                -1                   XNA   \n",
       "3             Country-wide               200  Consumer electronics   \n",
       "4                    Stone              1400             Furniture   \n",
       "\n",
       "   CNT_PAYMENT NAME_YIELD_GROUP          PRODUCT_COMBINATION  \\\n",
       "0          8.0             high     POS mobile with interest   \n",
       "1         24.0       low_normal      POS other with interest   \n",
       "2         12.0       low_normal             Cash X-Sell: low   \n",
       "3         12.0           middle  POS household with interest   \n",
       "4          6.0           middle   POS industry with interest   \n",
       "\n",
       "   DAYS_FIRST_DRAWING  DAYS_FIRST_DUE  DAYS_LAST_DUE_1ST_VERSION  \\\n",
       "0            365243.0         -1709.0                    -1499.0   \n",
       "1            365243.0          -565.0                      125.0   \n",
       "2            365243.0          -716.0                     -386.0   \n",
       "3            365243.0         -2310.0                    -1980.0   \n",
       "4            365243.0          -797.0                     -647.0   \n",
       "\n",
       "   DAYS_LAST_DUE  DAYS_TERMINATION  NFLAG_INSURED_ON_APPROVAL  \n",
       "0        -1619.0           -1612.0                        0.0  \n",
       "1          -25.0             -17.0                        0.0  \n",
       "2         -536.0            -527.0                        1.0  \n",
       "3        -1980.0           -1976.0                        1.0  \n",
       "4         -647.0            -639.0                        0.0  "
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2018-08-28T21:20:47.907922Z",
     "start_time": "2018-08-28T21:19:33.156828Z"
    }
   },
   "outputs": [],
   "source": [
    "df.to_csv('../data/prev_new_v4.csv.gz', index=False, compression='gzip')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
